DeleteKeyPair#

Description#

Deletes an SSH key pair.

Request Parameters#

  • KeyName — The name of the key pair.

    • Required: Yes, if KeyPairId is not supplied

    • Type: String

  • KeyPairId — The ID of the key pair.

    • Required: Yes, if KeyName is not supplied

    • Type: String

Response Elements#

  • requestId — The request ID.

    • Type: String

  • returnTrue is returned if the request succeeds and an error otherwise.

    • Type: Boolean

  • keyPairId — The ID of the found key pair.

    • Type: String

Examples#

c2-ec2 DeleteKeyPair KeyName <name>
c2-ec2 DeleteKeyPair KeyPairId <key_pair_id>