> For the complete documentation index, see [llms.txt](https://docs.imperialcad.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.imperialcad.app/api-and-integrations/api-integrations/civilian-endpoints/delete-vehicle.md).

# Delete Vehicle

This endpoint allows you to delete a vehicle.

{% hint style="warning" %}
This endpoint requires **any** ImperialCAD subscription.
{% endhint %}

### DeleteVehicle(data, callback)

<mark style="color:green;">`POST`</mark> `https://imperialcad.app/api/1.1/wf/deletevehicle`

***

#### Request Body

| Name              | Type   | Description                         |
| ----------------- | ------ | ----------------------------------- |
| `users_discordID` | string | Discord ID of user                  |
| `vin`             | string | VIN (Vehicle Identification Number) |

***

{% tabs %}
{% tab title="Example" %}

```lua
exports["ImperialCAD"]:DeleteCharacter({
    users_discordID = "123456789012345678",
    vin = "1HGCM82633A004352"
  }, function(success, res)
    if success then print("Vehicle deleted.") else print("Failed to delete vehicle:", res) end
end)
```

{% endtab %}

{% tab title="Response of Example" %}

```lua
{
  "status": "SUCCESS",
  "message": "Vehicle and relevant data was marked to be deleted"
}
```

{% endtab %}
{% endtabs %}
