> For the complete documentation index, see [llms.txt](https://doc.ankabot.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.ankabot.dev/mode-controleur/methodes/accountcontroller/forcedelete.md).

# forceDelete

### 🎮 Méthode

```coffeescript
account:forceDelete()
account:forceDelete(name)
account:forceDelete(names)
```

### 📝 Arguments

| Nom   | Type    | Description                                |
| ----- | ------- | ------------------------------------------ |
|       |         | Supprime le personnage par défaut.         |
| name  | string  | Nom du personnage à supprimer.             |
| names | {liste} | Liste des noms de personnages à supprimer. |

### 💎 Valeur de retour

| Type | Description |
| ---- | ----------- |

### Exemple 1

Forcer la suppression du personnage **Pharwell** sur le serveur **Mériana** :

```coffeescript
account1 = ankabotController:loadAccount("username1", false)
account1:forceServer("Mériana")
account1:forceDelete("Pharwell")
account1:connect()
```

### Exemple 2

Forcer la suppression des personnages **Pharwell** et **Undefined** et **Warlord** sur le serveur **Pandore** :

```coffeescript
toDelete = {"Pharwell", "Undefined", "Warlord"}
account1 = ankabotController:loadAccount("username1", false)
account1:forceServer("Pandore")
account1:forceDelete(toDelete)
account1:connect()
```

### Exemple 3

Forcer la suppression du personnage par défaut sur le serveur **Pandore** :

```coffeescript
account1 = ankabotController:loadAccount("username1", false)
account1:forceServer("Pandore")
account1:forceDelete()
account1:connect()
```

{% hint style="info" %}
Si le personnage à supprimer n'existe pas, rien ne se passe.\
Si la suppression échoue, le compte est déconnecté.\
Après la suppression, si y'a des personnages présents sur le serveur, le premier sera choisit.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://doc.ankabot.dev/mode-controleur/methodes/accountcontroller/forcedelete.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
