You may not be able to cancel if:
The restaurant already started cooking
The driver is already en route to pick up or deliver
The order is marked as Preparing or Picked Up
At that point, the order costs have been incurred.