Deletes the specified key pair, by removing the public key from Amazon EC2. You must own the key pair.
KeyName
Name of the key pair to delete.
Type: String
Default: None
Yes
DeleteKeyPairResponse
DeleteKeyPairResponse element.
Type:
Ancestor: None
Children: requestId, return
requestId
return
The ID of the request.
Type: xsd:string
Ancestor: DeleteKeyPairResponse
Children: None
Returns
Type: xsd:boolean
This example deletes the gsg-keypair key pair.
gsg-keypair
https://ec2.amazonaws.com/?Action=DeleteKeyPair&KeyName=gsg-keypair&AuthParams
<DeleteKeyPairResponse xmlns="http://ec2.amazonaws.com/doc/2009-04-04/"> <return>true</return> </DeleteKeyPairResponse>
CreateKeyPair
DescribeKeyPairs
Submit feedback about this site to: