Skip to main content

Deleting AWS Key Pairs

Use the following command to delete an AWS Key Pair:

KEY_NAME=""
aws ec2 delete-key-pair --key-name $KEY_NAME