Deletes a custom access control policy.
Operation description
If you want to delete a custom access control policy that is attached to folders or members, you must call the DetachControlPolicy operation to detach the policy before you delete it.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
resourcemanager:DeleteControlPolicy |
delete |
*ControlPolicy
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| PolicyId |
string |
Yes |
The ID of the access control policy. |
cp-SImPt8GCEwiq**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The returned result. |
||
| RequestId |
string |
The ID of the request. |
C8541E06-B207-46BF-92C9-DC8DE4609D75 |
Examples
Success response
JSON format
{
"RequestId": "C8541E06-B207-46BF-92C9-DC8DE4609D75"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 404 | EntityNotExists.ResourceControlPolicy | The specified resource control policy does not exist. | |
| 409 | InvalidResourceControlPolicyEnablementStatus | The resource control policy enablement status is not valid to perform this operation. | |
| 409 | DeleteConflict.SystemResourceControlPolicy | The system resource control policy cannot be deleted. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.