[comment]: # translation:outdated

[comment]: # ({7e2bc778-7e2bc778})
# usergroup.delete

[comment]: # ({/7e2bc778-7e2bc778})

[comment]: # ({849042c4-c1ef47a5})
### 説明

`object usergroup.delete(array userGroupIds)`

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

::: noteimportant
[プロビジョニング解除](/manual/web_interface/frontend_sections/users/authentication#configuration)されたユーザーグループ ([認証](/manual/api/reference/authentication/object)の`disabled_usrgrpid`に指定されたユーザーグループ) は削除できません。
:::

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

[comment]: # ({/849042c4-c1ef47a5})

[comment]: # ({22b6416d-22b6416d})
### パラメーター

`(array)` 削除するユーザーグループのID。

[comment]: # ({/22b6416d-22b6416d})

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

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

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

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

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

[comment]: # ({0572824b-156418d8})
#### 複数のユーザーグループの削除

2つのユーザーグループを削除します。

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

```json
{
    "jsonrpc": "2.0",
    "method": "usergroup.delete",
    "params": [
        "20",
        "21"
    ],
    "id": 1
}
```

レスポンス:

```json
{
    "jsonrpc": "2.0",
    "result": {
        "usrgrpids": [
            "20",
            "21"
        ]
    },
    "id": 1
}
```

[comment]: # ({/0572824b-156418d8})

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

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

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