All Products
Search
Document Center

Key Management Service:DeletePolicy

Last Updated:Jul 29, 2025

Deletes a permission policy.

Operation description

Before you delete a permission policy, make sure that the permission policy is not associated with application access points (AAPs). Otherwise, related applications cannot access Key Management Service (KMS).

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
NamestringYes

The name of the permission policy that you want to delete.

policy_test

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The request ID.

00a26a33-d992-42f3-9012-5fd12764430f

Examples

Sample success responses

JSONformat

{
  "RequestId": "00a26a33-d992-42f3-9012-5fd12764430f"
}

Error codes

HTTP status codeError codeError messageDescription
400InvalidParameterThe specified parameter is not valid.An invalid value is specified for the parameter.
404InvalidAccessKeyId.NotFoundThe Access Key ID provided does not exist in our records.-

For a list of error codes, visit the Service error codes.