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
DeleteKeyPairResponseType
DeleteKeyPairResponseType element.
Type:
Ancestor: None
Children: requestId, return
requestId
return
The ID of the request.
Type: xsd:string
Ancestor: DeleteKeyPairResponseType
Children: None
Returns "true" if deletion succeeded; otherwise "false".
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-07-15/"> <return>true</return> </DeleteKeyPairResponse>
CreateKeyPair
DescribeKeyPairs
Submit feedback about this site to: