Delete Organization
Permissions
The Identity Management API is authorized at the application level. Before calling the API, you need to set API permissions for different applications. For details, see API Permissions.
| Permission Code | Description |
|---|---|
| org_all | Read/Write permission for organization management APIs |
| all | Read/Write permission for all APIs |
Request Description
Request Headers
| Parameter Name | Chinese Name | Required | Type | Description |
|---|---|---|---|---|
| Authorization | Authorization | Yes | String | Format: Bearer {access_token} |
| Content-Type | Content Type | Yes | String | Fixed value: application/json; charset=utf-8 |
Request Example
None
Request Parameters
| Parameter Name | Chinese Name | Required | Type | Description |
|---|---|---|---|---|
| org_id | Organization ID | Yes | String | Organization ID |
Response Example
Success Example
HTTP/1.1 204 No Content
Error Example
HTTP/1.1 400 Bad Request
json
{
"error_code": "ORG.0001",
"error_msg": "Organization does not exist"
}Response Parameters
None
Error Codes
| Status Code | Error Code | Chinese Error Message | English Error Message | Resolution |
|---|---|---|---|---|
| 400 | ORG.0001 | 组织不存在 | Organization does not exist | Please check whether the corresponding organization exists |
| 400 | ORG.0020 | 当前组织下存在子组织不能被删除 | The existing sub-organization under the current organization cannot be deleted | Please check whether there are sub-organizations under the current organization |
| 400 | ORG.0021 | 当前组织下存在用户组不能被删除 | User groups that exist in the current organization cannot be deleted | Please check whether there are user groups in the current organization |
| 400 | ORG.0022 | 当前组织下存在用户不能被删除 | Users in the current organization cannot be deleted | Please check whether there are users in the current organization |