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
- 200
- 401
- 403
- 404
Vehicle successfully removed
Response Headers
Unauthorized
Response Headers
Authorization or validation error.
Occurs when the user lacks permissions or the data is invalid.
Response Headers
Vehicle not found