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: xsd: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

<DeleteKeyPair xmlns="http://ec2.amazonaws.com/doc/2007-08-29">
    <keyName>example-key-name</keyName>
</DeleteKeyPair>
<DeleteKeyPair xmlns="http://ec2.amazonaws.com/doc/2007-08-29">
  <return>true</return>
</DeleteKeyPair>