AWS SDK for .NET Documentation
DeleteKeyPair Method (request)
Amazon ► Amazon.EC2 ► AmazonEC2Client ► DeleteKeyPair(DeleteKeyPairRequest)
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.
Declaration Syntax

C#

    public DeleteKeyPairResponse DeleteKeyPair(
    	DeleteKeyPairRequest request
    )

Parameters

request (DeleteKeyPairRequest)
  Delete Key Pair request

Return Value
Delete Key Pair Response from the service
Exceptions

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

Assembly: AWSSDK (Module: AWSSDK) Version: 1.5.60.0 (1.5.60.0)