DeleteKeyPair From Amazon Elastic Compute Cloud: 2009-04-04 previous page next page DeleteKeyPairDescriptionDeletes the specified key pair, by removing the public key from Amazon EC2. You must own the key pair.Request ParametersNameDescriptionRequiredKeyName Name of the key pair to delete. Type: String Default: None YesResponse ElementsNameDescriptionDeleteKeyPairResponseDeleteKeyPairResponse element. Type: DeleteKeyPairResponse Ancestor: None Children: requestId, returnrequestId 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> Related Operations CreateKeyPair DescribeKeyPairs previous page start next page