Deletes a custom control policy.

If you want to delete a custom control policy that is attached to folders or member accounts, you must call the DetachControlPolicy operation to detach the policy before you delete it.

In this example, the custom control policy cp-SImPt8GCEwiq**** is deleted.


OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes DeleteControlPolicy

The operation that you want to perform. Set the value to DeleteControlPolicy.

PolicyId String Yes cp-SImPt8GCEwiq****

The ID of the control policy.

For more information about common request parameters, see Common parameters.

Response parameters

Parameter Type Example Description
RequestId String C8541E06-B207-46BF-92C9-DC8DE4609D75

The ID of the request.


Sample requests
&<Common request parameters>

Sample success responses

XML format


JSON format

  "RequestId": "C8541E06-B207-46BF-92C9-DC8DE4609D75"

Error codes

For a list of error codes, visit the API Error Center.