[comment]: # translation:outdated

[comment]: # ({c63958e0-c63958e0})
# token.delete

[comment]: # ({/c63958e0-c63958e0})

[comment]: # ({71898676-e5872416})
### Beschreibung

`object token.delete(array tokenids)`

Diese Methode ermöglicht das Löschen von Tokens.

::: noteclassic
Die Berechtigung *Manage API tokens* [permission](/manual/web_interface/frontend_sections/users/user_roles#configuration) ist erforderlich, damit die Benutzerrolle Tokens für andere Benutzer verwalten kann.
:::

[comment]: # ({/71898676-e5872416})

[comment]: # ({92c0da91-92c0da91})
### Parameter

`(array)` IDs der zu löschenden Token.

[comment]: # ({/92c0da91-92c0da91})

[comment]: # ({fd9b032e-fd9b032e})
### Rückgabewerte

`(object)` Gibt ein Objekt zurück, das die IDs der gelöschten Token
unter der Eigenschaft `tokenids` enthält.

[comment]: # ({/fd9b032e-fd9b032e})

[comment]: # ({b41637d2-b41637d2})
### Beispiele

[comment]: # ({/b41637d2-b41637d2})

[comment]: # ({69adf3b7-7f001ef1})
#### Mehrere Token löschen

Löschen Sie zwei Token.

[Anfrage](/manual/api#performing-requests):

```json
{
    "jsonrpc": "2.0",
    "method": "token.delete",
    "params": [
        "188",
        "192"
    ],
    "id": 1
}
```

Antwort:

```json
{
    "jsonrpc": "2.0",
    "result": {
        "tokenids": [
            "188",
            "192"
        ]
    },
    "id": 1
}
```

[comment]: # ({/69adf3b7-7f001ef1})

[comment]: # ({9ebff2e2-9ebff2e2})
### Quelle

CToken::delete() in *ui/include/classes/api/services/CToken.php*.

[comment]: # ({/9ebff2e2-9ebff2e2})
