グループを削除

delete
https://api.box.com/2.0
/groups/:group_id

グループを完全に削除します。管理者レベルの権限を持つユーザーのみがこのAPIを使用できます。

リクエスト

bearer [ACCESS_TOKEN]
application/json

パスパラメータ

stringパス内必須
57645

グループのID。

レスポンス

none

グループが正常に削除された場合は、空のレスポンスが返されます。

予期しないクライアントエラー。

delete
グループを削除
このドキュメント内で一部のAPIを試せるようになりました。
ログイン

リクエストの例

cURL
curl -i -X DELETE "https://api.box.com/2.0/groups/57645" \
     -H "authorization: Bearer <ACCESS_TOKEN>"
.NET
await client.GroupsManager.DeleteAsync("11111");
Java
BoxGroup group = new BoxGroup(api, "id");
group.delete();
Python
client.group(group_id='11111').delete()
print('The group was deleted!')
Node
client.groups.delete('11111')
	.then(() => {
		// deletion succeeded — no value returned
	});
iOS
client.groups.delete(groupId: "12345") { 
(result: Result<Void, BoxSDKError>) in
    guard case .success = result else {
        print("Error deleting group")
        return
    }

    print("Group was successfully deleted.")
}