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