Deletes a CloudSSO directory.
Operation description
Prerequisites
Before you delete a directory, ensure that the following requirements are met:
-
All access permissions on the accounts in your resource directory are removed from all users and groups. For more information, see DeleteAccessAssignment.
-
All users are deleted. For more information, see DeleteUser.
-
All groups are deleted. For more information, see DeleteGroup.
-
All access configurations are deleted. For more information, see DeleteAccessConfiguration.
-
All SCIM credentials are deleted. For more information, see DeleteSCIMServerCredential.
-
SSO configurations are cleared. For more information, see ClearExternalSAMLIdentityProvider.
Operation description
The following example shows how to delete the directory whose ID is d-00fc2p61****.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cloudsso:DeleteDirectory |
delete |
*Directory
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DirectoryId |
string |
Yes |
The ID of the directory. |
d-00fc2p61**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
B182C041-8C64-5F2F-A07B-FC67FAF89CF9 |
Examples
Success response
JSON format
{
"RequestId": "B182C041-8C64-5F2F-A07B-FC67FAF89CF9"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.