[comment]: # translation:outdated

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

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

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

`object token.delete(array tokenids)`

Šī metode ļauj dzēst tokenus.

::: noteclassic
Lai lietotāja loma varētu pārvaldīt citu lietotāju tokenus, ir nepieciešama *Manage API tokens* [atļauja](/manual/web_interface/frontend_sections/users/user_roles#configuration).
:::

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

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

`(array)` dzēšamo tokenu ID.

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

[comment]: # ({fd9b032e-fd9b032e})
### Atgrieztās vērtības

`(object)` Atgriež objektu, kas satur dzēsto tokenu ID zem `tokenids` īpašības.

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

[comment]: # ({b41637d2-b41637d2})
### Piemēri

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

[comment]: # ({69adf3b7-7f001ef1})
#### Dzēst vairākus tokenus

Dzēst divus tokenus.

[Pieprasījums](/manual/api#performing-requests):

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

Atbilde:

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

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

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

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

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