[comment]: # ({cc40eabf-cc40eabf})
# role.delete

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

[comment]: # ({55e0b409-c4fe1cb7})
### 説明

`object role.delete(array roleids)`

このメソッドは、ユーザーの役割を削除することができます。

::: noteclassic
このメソッドは、*Super admin*タイプのユーザーのみ利用可能です。メソッドを呼び出す権限は、ユーザーの役割の設定で取り消すことができます。詳細は[ユーザーの役割](/manual/web_interface/frontend_sections/users/user_roles)を参照してください。
:::

[comment]: # ({/55e0b409-c4fe1cb7})

[comment]: # ({3eacfbc2-3eacfbc2})
### パラメーター

`(array)` 削除するユーザーの役割のID。

[comment]: # ({/3eacfbc2-3eacfbc2})

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

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

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

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

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

[comment]: # ({ff0acc64-4fc52493})
#### 複数のユーザーの役割の削除

2つのユーザーの役割を削除します。

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

```json
{
    "jsonrpc": "2.0",
    "method": "role.delete",
    "params": [
        "4",
        "5"
    ],
    "id": 1
}
```

レスポンス:

```json
{
    "jsonrpc": "2.0",
    "result": {
        "roleids": [
            "4",
            "5"
        ]
    },
    "id": 1
}
```

[comment]: # ({/ff0acc64-4fc52493})

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

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

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