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 transportsBehavior:- Deletes the vehicle from the vehicles collection- Removes it from the company's vehicle list- Associated documents (ITV, images) remain in S3Example of a successful response:json{ id: 507f1f77bcf86cd799439011, message: Vehicle deleted successfully}
Request
Responses
- 200
- 400
- 401
Vehicle successfully removed
Request error
Unauthorized