The following code examples show how to use DeleteAlias
.
- AWS CLI
-
To delete an AWS KMS alias
The following
delete-alias
example deletes the aliasalias/example-alias
. The alias name must begin with alias/.aws kms delete-alias \ --alias-name
alias/example-alias
This command produces no output. To find the alias, use the
list-aliases
command.For more information, see Deleting an alias in the AWS Key Management Service Developer Guide.
-
For API details, see DeleteAlias
in AWS CLI Command Reference.
-
For a complete list of AWS SDK developer guides and code examples, see Using this service with an AWS SDK. This topic also includes information about getting started and details about previous SDK versions.