DeleteKeyPair From Amazon Elastic Compute Cloud: 2009-08-15 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 ElementsNameDescriptionDeleteKeyPairResponseTypeDeleteKeyPairResponseType element. Type: DeleteKeyPairResponseType Ancestor: None Children: requestId, returnrequestId The ID of the request. Type: xsd:string Ancestor: DeleteKeyPairResponseType Children: None return Returns Type: xsd:boolean Ancestor: DeleteKeyPairResponseType 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-08-15/"> <return>true</return> </DeleteKeyPairResponse> Related Operations CreateKeyPair DescribeKeyPairs previous page start next page