| « PreviousNext » | |
![]() ![]() | Did this page help you? Yes | No | Tell us about it... |
Deletes the specified key pair, by removing the public key from Amazon EC2. You must own the key pair.
KeyNameThe name of the key pair.
Type: String
Default: None
Required: Yes
The following elements are returned in a DeleteKeyPairResponse
element.
requestIdThe ID of the request.
Type: xsd:string
returnReturns true if the request succeeds. Otherwise,
returns an error.
Type: xsd:boolean
This example deletes the gsg-keypair key pair.
https://ec2.amazonaws.com/?Action=DeleteKeyPair &KeyName=gsg-keypair &AUTHPARAMS
<DeleteKeyPairResponse xmlns="http://ec2.amazonaws.com/doc/2013-02-01/"> <requestId>59dbff89-35bd-4eac-99ed-be587EXAMPLE</requestId> <return>true</return> </DeleteKeyPairResponse>