Detaches a custom control policy. After you detach a custom control policy, the operations performed on resources by using member accounts are not limited by the custom control policy.

Note The system control policy FullAliyunAccess is attached to each folder and member account by default and cannot be detached from them.

In this example, the custom control policy cp-jExXAqIYkwHN**** is detached from the folder fd-ZDNPiT****.


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 DetachControlPolicy

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

PolicyId String Yes cp-jExXAqIYkwHN****

The ID of the control policy.

TargetId String Yes fd-ZDNPiT****

The ID of the object from which you want to detach the control policy. Control policies can be attached to the following objects:

  • Root folder
  • Subfolders of the Root folder
  • Member accounts

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

Response parameters

Parameter Type Example Description
RequestId String 9EA4F962-1A2E-4AFE-BE0C-B14736FC46CC

The ID of the request.


Sample requests
&<Common request parameters>

Sample success responses

XML format


JSON format

  "RequestId": "9EA4F962-1A2E-4AFE-BE0C-B14736FC46CC"

Error codes

HTTP status code Error code Error message Description
404 EntityNotExists.Target The specified target does not exist in the resource directory. The error message returned because the specified object does not exist in the resource directory.

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