Delete vehicle
DELETE/api/vehicle/:id
Permanently delete a vehicle from the system.
Requirements:
- The vehicle must exist and belong to the company
- It cannot be assigned to active transports
Behavior:
- Deletes the vehicle from the vehicles collection
- Removes it from the company's vehicle list
- Associated documents (ITV, images) remain in S3
Example of successful response:
{
id: 507f1f77bcf86cd799439011,
message: Vehicle deleted successfully
}
Request
Responses
- 200
- 400
- 401
Vehicle successfully removed.
Request error
Unauthorized