ec2-delete-keypair
Syntax
ec2-delete-keypair
key_pair
Description
Deletes the specified key pair, by removing the public key from Amazon EC2
Options
Option | Description | Required |
---|---|---|
| Name of the key pair. Example: | Yes |
Output
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
.
Example
This example deletes the gsg-keypair key pair.
PROMPT>
ec2-delete-keypair gsg-keypair
KEYPAIR gsg-keypair