Skip to main content

Delete vehicle by ID

DELETE 

/truckers/vehicles/:id

Permanently removes 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 up the fleet of obsolete vehicles

Notes:

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

Request

Responses

Vehicle successfully removed

Response Headers