Deletes a policy.

Debug

Use OpenAPI Explorer to perform debug operations and generate SDK code examples.

Request parameters

Parameter Type Required? Example value Description
Action String Yes DeletePolicy

The name of this action.

Value: DeletePolicy

PolicyName String Yes OSS-Administrator The policy name.

Response parameters

Parameter Type Example value Description
RequestId String 898FAB24-7509-43EE-A287-086FE4C44394 The request ID.

Example

Request example

https://ram.aliyuncs.com/?Action=DeletePolicy
&PolicyName=OSS-Administrator
&<Common parameters>

Response example

XML format

<DeletePolicyResponse>
  <RequestId>898FAB24-7509-43EE-A287-086FE4C44394</RequestId>
</DeletePolicyResponse>

JSON format

{
    "RequestId":"898FAB24-7509-43EE-A287-086FE4C44394"
}

Errors

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