---
title: "Removes the given vehicle"
method: DELETE
path: "/v1/resourceowner/vehicles2/{vehicleId}"
tags: ["ResourceOwnerVehicle2V2"]
---

# Removes the given vehicle

`DELETE /v1/resourceowner/vehicles2/{vehicleId}`

## Request

- Base URL: `https://api.automile.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.automile.com/v1/resourceowner/vehicles2/{vehicleId}`
- Auth: OAuth 2
  - Implicit: `https://api.automile.com/login/`

Removes the given vehicle. If the vehicle is assoicated with a device, first move the device to another vehicle

## Path parameters

- `vehicleId` integer, required

## Response `200`

The vehicle has been deleted

## Other responses

- `403`: Request is forbidden, could occur for a number of reasons, see returned message
- `404`: Not found, the vehicle you tried to update can't be found
- `500`: Internal server error

---

[API](https://skmtc.dev/automile/apis/automile-api.md) - [All operations](https://skmtc.dev/automile/apis/automile-api/llms.txt) - [OpenAPI document](https://skmtc.dev/automile/apis/automile-api/revisions/56b5b8d6d733?raw)
