If the order is live, you can cancel the order by clicking the Cancel or "C" button on the order line (in Classic layout). You can also right-click the order line and select Cancel.
To cancel an order in Mosaic layout, from the Orders tab in the Activity panel, click Cancel or "C" in the order line, or right-click the order and select Cancel.