Skip to main content

Delete vehicle by ID

DELETE 

/truckers/vehicles/:id

Permanently delete a specific vehicle from the fleet, identified by its unique ID.

Parameters:

  • id (required): Unique ID of the vehicle to delete (MongoDB ObjectId)

Use Cases:

  • Decommission a specific vehicle that is no longer in service
  • Delete duplicate or erroneous records
  • Clean the fleet of obsolete vehicles

Notes:

  • Deletion is permanent and cannot be undone
  • Associated S3 images will also be deleted
  • Requires valid JWT authentication

Request

Responses

Vehicle successfully removed.