Deletes the key material that you imported.

This operation does not delete the CMK that is created by using the key material.

If the CMK is in the PendingDeletion state, the state of the CMK and the scheduled deletion time do not change after you call this operation. If the CMK is not in the PendingDeletion state, the state of the CMK changes to PendingImport after you call this operation.

After you delete the key material, you can upload only the same key material into the CMK.


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 DeleteKeyMaterial

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

KeyId String Yes 1234abcd-12ab-34cd-56ef-12345678****

The globally unique ID of the CMK.

Response parameters

Parameter Type Example Description
RequestId String 4162a6af-bc99-40b3-a552-89dcc8aaf7c8

The ID of the request.


Sample requests
&<Common request parameters>

Sample success responses

XML format


JSON format

        "RequestId": "4162a6af-bc99-40b3-a552-89dcc8aaf7c8"

Error codes

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