Delete a delivery
DELETE/truckers/deliveries/delete/:id
This endpoint allows you to delete a specific delivery identified by its ID.
Restrictions:
- Can only delete deliveries assigned to the authenticated carrier
- Deliveries in the 'collected' or 'delivered' state cannot be deleted
Use Cases:
- Cancel a delivery that has not yet started
- Delete 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
- 200
- 401
- 404
Successfully deleted
Response Headers
Unauthorized
Response Headers
Not found