DeleteKeyPair

The DeleteKeyPair operation deletes a key pair.

The following table describes the request parameters for DeleteKeyPair. Parameter names are case sensitive.

NameDescriptionRequired

KeyName

Name of the key pair to delete.

Type: String

Yes

The following table describes the default response tags included in DeleteKeyPair responses.

NameDescription

return

true if the key was successfully deleted.

Type: xsd:boolean

https://ec2.amazonaws.com/
?Action=DeleteKeyPair
&KeyName=example-key-name
&...auth parameters...
<DeleteKeyPair xmlns="http://ec2.amazonaws.com/doc/2007-08-29">
  <return>true</return>
</DeleteKeyPair>