Skip to main content

Delete a delivery

DELETE 

/truckers/deliveries/delete/:id

This endpoint allows deleting a specific delivery identified by its ID.

Restrictions:

  • Can only delete deliveries assigned to the authenticated carrier
  • Deliveries in 'collected' or 'delivered' status cannot be deleted

Use Cases:

  • Canceling a delivery that has not yet started
  • Deleting a delivery created by mistake

Notes:

  • Requires valid JWT authentication
  • Deletion is permanent and cannot be undone
  • Returns the ID of the deleted delivery if successful

Request

Responses

Successfully deleted