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
- 200
- 401
- 404
Successfully deleted
Unauthorized
Not found