> 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/emergency-endpoints/delete-call.md).

# Delete Call

This endpoint allows you to delete a call.

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

### DeleteCall(data, callback)

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

***

#### Request Body

| Name        | Type   | Description       |
| ----------- | ------ | ----------------- |
| `callId`    | string | ID of Call        |
| `discordId` | string | User's discord ID |

***

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

```lua
exports["ImperialCAD"]:DeleteCall({
    callId = "A1B2C3D4E5",
    discordId = "123456789012345678"
}, function(success, res)
  print(success and "Call deleted." or ("Failed: " .. res))
end)
```

{% endtab %}

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

```lua
"Call ID A1B2C3D4E5 closed"
```

{% endtab %}
{% endtabs %}
