[comment]: # translation:outdated

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

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

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

`object token.delete(array tokenids)`

Questo metodo consente di eliminare i token.

::: noteclassic
Per il ruolo utente è necessaria l'[autorizzazione](/manual/web_interface/frontend_sections/users/user_roles#configuration) *Manage API tokens* per gestire i token di altri utenti.
:::

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

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

`(array)` ID dei token da eliminare.

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

[comment]: # ({fd9b032e-fd9b032e})
### Valori di ritorno

`(object)` Restituisce un oggetto contenente gli ID dei token eliminati
sotto la proprietà `tokenids`.

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

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

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

[comment]: # ({69adf3b7-7f001ef1})
#### Eliminare più token

Eliminare due token.

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

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

Risposta:

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

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

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

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

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