ec2-delete-keypair
ec2-delete-keypair
key_pair
Deletes the specifed key pair, by removing the public key from Amazon EC2
Option | Description | Required |
---|---|---|
|
Name of the key pair. Example: |
Yes |
Amazon EC2 returns a table that contains the following information:
-
Output type identifier ("KEYPAIR").
-
Name of the deleted key pair.
-
Private key fingerprint.
Amazon EC2 displays errors on stderr.
This example deletes the gsg-keypair key pair:
$
ec2-delete-keypair gsg-keypair
KEYPAIR gsg-keypair