deleteCharacter
Delete a character from this account.
Permanent. The character, its level and everything it was carrying are gone, and the game offers no way to restore any of it. A character currently in the lobby is refused — leave with `characterSelect` first.
Request
POST /api/v1/sessions/{accountKey}/actions/deleteCharacter
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
characterId (character_id) | string | yes | From `chars`. |
Example request
{ "characterId": "630211546215118851" }
Response
`{ ok: true, characters, slots }` — the roster without it.
| Field | Type | Meaning |
|---|---|---|
characters | object[] | The roster after the deletion, so there is nothing to re-read. |
slots.free | integer | How many slots are now open. |
Example response
{
"ok": true,
"result": 1,
"characterId": "630211546215118851",
"characters": [],
"slots": { "used": 0, "total": 0, "available": 8, "free": 8 }
}
Errors
| Code | When |
|---|---|
action_failed | The character is in the lobby, or the id is not on this account. |
plan_limit | Not on the free plan. |
See also
DarkerAPI is an independent project. It is not affiliated with, endorsed by or associated with IRONMACE Co., Ltd. or Valve Corporation. “Dark and Darker” and related marks belong to their respective owners.