You can cancel an extended hour trade order by following the below steps:
Step 1:Navigate to the Order section on the menu bar at the top of the screen

Step 2:However, on the order status. Click on Cancel order

Step 3:Click on Yes to confirm the cancellation of the order. Order will be canceled if not executed already.