Disables a resource directory. This operation is irreversible. Proceed with caution.
Operation description
Before you disable a resource directory, make sure that:
-
All member accounts are removed from the resource directory. For more information, see RemoveCloudAccount.
-
All folders except the root folder are deleted from the resource directory. For more information, see DeleteFolder.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
resourcemanager:DestroyResourceDirectory |
delete |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
No parameters required.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
9B34724D-54B0-4A51-B34D-4512372FE1BE |
Examples
Success response
JSON format
{
"RequestId": "9B34724D-54B0-4A51-B34D-4512372FE1BE"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 404 | EntityNotExists.ResourceDirectory | The resource directory for the account is not enabled. We recommend that you first enable the resource directory for the account. | The resource directory for the account is not enabled. We recommend that you first enable the resource directory for the account. |
| 409 | DeleteConflict.ResourceDirectory.Account | Failed to delete the resource directory because one or more member accounts exist. We recommend that you first remove these member accounts. | One or more members exist in the resource directory. Remove the members first. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.