  def DeleteKMSKey(self, kms_key_id: Optional[str] = None) -> None:
    """Delete a KMS key.

    Schedule the KMS key for deletion. By default, users have a 30 days
        window before the key gets deleted.

    Args:
      kms_key_id (str): The ID of the KMS key to delete.

    Raises:
      ResourceDeletionError: If the key could not be scheduled for deletion.
    """

    if not kms_key_id:
      return

    client = self.aws_account.ClientApi(common.KMS_SERVICE)
    try:
      client.schedule_key_deletion(KeyId=kms_key_id)
    except client.exceptions.ClientError as exception:
      raise errors.ResourceDeletionError(
          'Could not schedule the KMS key {0:s} for deletion {1!s}'.format(
              exception, kms_key_id), __name__) from exception
Delete a KMS key.

Schedule the KMS key for deletion. By default, users have a 30 days
window before the key gets deleted.

Args:
kms_key_id (str): The ID of the KMS key to delete.

Raises:
ResourceDeletionError: If the key could not be scheduled for deletion.
libcloudforensics/providers/aws/internal/kms.py