[comment]: # translation:outdated

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

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

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

`object token.delete(array tokenids)`

このメソッドは、トークンを削除することができます。

::: noteclassic
他のユーザーのトークンを管理するには、ユーザーの役割に*APIトークンの管理*の[権限](/manual/web_interface/frontend_sections/users/user_roles#configuration)が必要です。
:::

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

[comment]: # ({92c0da91-92c0da91})
### パラメーター

`(array)` 削除するトークンのID。

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

[comment]: # ({fd9b032e-fd9b032e})
### 戻り値

`(object)` `tokenids`プロパティの下にある削除されたトークンのIDを含むオブジェクトを返します。

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

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

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

[comment]: # ({69adf3b7-7f001ef1})
#### 複数のトークンの削除

2つのトークンを削除します。

[リクエスト](/manual/api#performing-requests):

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

レスポンス:

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

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

[comment]: # ({9ebff2e2-9ebff2e2})
### ソース

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

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