Deletes a saved vehicle of the application's organization.
Input. vehicleId in the path, a number from List vehicles.
Response. 200 with { success: true }.
Notes. An unsaved vehicle, a vehicle that does not exist and a private vehicle that is not shared with the access token answer 404. A vehicle that an alert names, or whose removal would empty a vehicle group an alert uses, answers 409 with code: VEHICLE_IN_USE; change the alert first.
Side effects. The vehicle is removed from its vehicle groups, which are sent again to the Cores that use them, and its uploaded image is deleted. This cannot be undone; the license plate shows up again as an unsaved vehicle when cameras read it.
Request examples
DELETE /v3/vehicle-api/vehicles/1093527491036451
Required scope: write:vehicles
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
400vehicleId is not a positive integer.
404Vehicle not found in this organization.
429Too many requests. Try again later.
500Internal server error.
