ec2-delete-keypair

ec2-delete-keypair key_pair

Deletes the specified key pair, by removing the public key from Amazon EC2

OptionDescriptionRequired

key_pair

Name of the key pair.

Example: primary_keypair

Yes

Amazon EC2 returns a table that contains the following information:

Amazon EC2 displays errors on stderr.

This example deletes the gsg-keypair key pair.

$ ec2-delete-keypair gsg-keypair
KEYPAIR gsg-keypair