Deletes the specified key pair, by removing the
public key from Amazon EC2. You must own the key pair.

C# |
DeleteKeyPairResponse DeleteKeyPair( DeleteKeyPairRequest request )

- request (DeleteKeyPairRequest)
- Delete Key Pair request

Delete Key Pair Response from the service

Exception | Condition |
---|---|
WebException | |
AmazonEC2Exception |