Deletes a custom control policy.
Operation description
To delete a custom control policy that is attached to a resource folder or member accounts, you must first invoke DetachControlPolicy to detach 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 control policy. |
cp-SImPt8GCEwiq**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response. |
||
| 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.