Deleting a CMK is a destructive and potentially dangerous operation.
When a CMK is deleted, all data that was encrypted under the CMK is
unrecoverable. To prevent the use of a CMK without deleting it, use
DisableKey.
If you schedule deletion of a CMK from a custom key store,
when the waiting period expires, ScheduleKeyDeletion
deletes the CMK
from AWS KMS. Then AWS KMS makes a best effort to delete the key
material from the associated AWS CloudHSM cluster. However, you might
need to manually delete the orphaned key material
from the cluster and its backups.
You cannot perform this operation on a CMK in a different AWS account.
For more information about scheduling a CMK for deletion, see Deleting Customer Master Keys
in the AWS Key Management Service Developer Guide.
The result of this operation varies with the key state of the CMK. For
details, see How Key State Affects Use of a Customer Master Key
in the AWS Key Management Service Developer Guide.