DeleteKeyPair
Description
Deletes the specified key pair, by removing the public key from Amazon EC2. You must own the key pair.
Request Parameters
Name | Description | Required |
---|---|---|
| Name of the key pair to delete. Type: String Default: None | Yes |
Response Elements
Name | Description |
---|---|
|
Type: |
Ancestor: None
Children: requestId
, return
requestId
The ID of the request.
Type: xsd:string
Ancestor: DeleteKeyPairResponse
Children: None
return
Returns
Type: xsd:boolean
Ancestor: DeleteKeyPairResponse
Children: None
Examples
Example Request
This example deletes the gsg-keypair
key pair.
https://ec2.amazonaws.com/?Action=DeleteKeyPair&KeyName=gsg-keypair&AuthParams
Example Response
<DeleteKeyPairResponse xmlns="http://ec2.amazonaws.com/doc/2009-04-04/"> <return>true</return> </DeleteKeyPairResponse>