> 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-character.md).

# Delete Character

This endpoint allows you to delete a character.

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

### DeleteCharacter(data, callback)

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

***

#### Request Body

| Name              | Type   | Description         |
| ----------------- | ------ | ------------------- |
| `users_discordID` | string | Discord ID of user  |
| `citizenid`       | string | Unique character ID |

***

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

```lua
exports["ImperialCAD"]:DeleteCharacter({
    users_discordID = "123456789012345678",
    citizenid = "JD321"
  }, function(success, res)
    if success then print("Character deleted.") else print("Failed to delete character:", res) end
end)
```

{% endtab %}

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

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

{% endtab %}
{% endtabs %}
