You can call this operation to delete one or more custom policies.

Description

  • System policies cannot be deleted.
  • Custom policies that are associated with cloud desktops cannot be deleted.

Debugging

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 DeletePolicyGroups

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

RegionId String Yes cn-hangzhou

The ID of the region where the policies to delete are located.

PolicyGroupId.N RepeatList Yes pg-gx2x1dhsmthe9****

The IDs of the policies that you want to delete. You can configure one or more policy IDs. Valid values of N: 1 to 100.

Response parameters

Parameter Type Example Description
RequestId String 8BBD24F5-DECA-48D8-B08C-15619790F07B

The ID of the request.

Examples

Sample requests

https://ecd.cn-hangzhou.aliyuncs.com/?Action=DeletePolicyGroups
&PolicyGroupId.1=pg-gx2x1dhsmthe9****
&<Common request parameters>

Sample success responses

XML format

<DeletePolicyGroupsResponse>
      <RequestId>8BBD24F5-DECA-48D8-B08C-15619790F07B</RequestId>
</DeletePolicyGroupsResponse>

JSON format

{
  "RequestId":"8BBD24F5-DECA-48D8-B08C-15619790F07B"
}

Error codes

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