edit-icon download-icon


Last Updated: Apr 02, 2018


Deletes the imported key material.

  • This operation does not cause the deletion of the specified CMK.
  • When the specified CMK is in the PendingDeletion state, this operation does not change the CMK’s state or the scheduled deletion time. Otherwise, it changes the CMK’s state to PendingImport.
  • After you delete the key material, you can use ImportKeyMaterial to reimport the same key material into the CMK. You cannot import a different key material.

Request parameters

Name Type Required Description
KeyId string Yes Globally unique identifier of the CMK.

Response parameters

Name Type Description
RequestId String The ID of this request.


Request example

  1. https://kms.cn-hangzhou.aliyuncs.com/?Action=DeleteKeyMaterial
  2. &KeyId=<external key id>
  3. &<Common request parameters>

Response example

JSON format

  1. //json response
  2. {
  3. "RequestId": "4162a6af-bc99-40b3-a552-89dcc8aaf7c8"
  4. }

XML format

  1. //xml response
  2. <KMS>
  3. <RequestId>4162a6af-bc99-40b3-a552-89dcc8aaf7c8</RequestId>
  4. </KMS>
Thank you! We've received your feedback.