DeleteKeyPair

The DeleteKeyPair operation deletes a keypair.

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

Element NameDefinitionRequired?Type
keyName Name of the keypair to delete.Yesxsd:string

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

Element NameDefinitionType
return true if the key was successfully deleted.xsd:boolean
<DeleteKeyPair xmlns="http://ec2.amazonaws.com/doc/2007-01-19">
    <keyName>example-key-name</keyName>
</DeleteKeyPair>
<DeleteKeyPair xmlns="http://ec2.amazonaws.com/doc/2007-01-19">
  <return>true</return>
</DeleteKeyPair>