| Did this page help you? Yes No Tell us about it... |
Deletes the specified key pair, by removing the public key from Amazon EC2. You must own the key pair.
| Name | Description | Required |
|---|---|---|
|
|
Name of the key pair to delete. Type: String Default: None |
Yes |
The elements in the following table are wrapped in a
DeleteKeyPairResponse structure.
| Name | Description |
|---|---|
|
|
The ID of the request. Type: xsd:string |
|
|
Returns true if the request succeeds. Otherwise, returns an error. Type: xsd:boolean |
This example deletes the gsg-keypair key pair.
https://ec2.amazonaws.com/?Action=DeleteKeyPair &KeyName=gsg-keypair &AUTHPARAMS
<DeleteKeyPairResponse xmlns="http://ec2.amazonaws.com/doc/2011-12-15/"> <requestId>59dbff89-35bd-4eac-99ed-be587EXAMPLE</requestId> <return>true</return> </DeleteKeyPairResponse>