[comment]: # translation:outdated

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

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

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

`object token.delete(array tokenids)`

Ta metoda umożliwia usuwanie tokenów.

::: noteclassic
Uprawnienie *Zarządzanie Tokenami API* [permission](/manual/web_interface/frontend_sections/users/user_roles#configuration) jest wymagane dla roli użytkownika, aby zarządzać tokenami dla innych użytkowników.
:::

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

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

`(array)` ID tokenów do usunięcia.

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

[comment]: # ({fd9b032e-fd9b032e})
### Zwracane wartości

`(object)` Zwraca obiekt zawierający identyfikatory usuniętych tokenów
we właściwości `tokenids`.

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

[comment]: # ({b41637d2-b41637d2})
### Przykłady

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

[comment]: # ({69adf3b7-7f001ef1})
#### Usuń wiele tokenów

Usuń dwa tokeny.

[Żądanie](/manual/api#performing-requests):

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

Odpowiedź:

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

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

[comment]: # ({9ebff2e2-9ebff2e2})
### Źródło

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

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