Deleting a Keypair

You can delete a specified keypair. This action deletes the public key stored by 3DS OUTSCALE.

Deleting a keypair does not delete the private key stored on your computer, and does not remove the public key from the metadata of instances for which the keypair is used. You cannot use the deleted keypair to launch a new instance. However, you can continue to connect to other instances already launched with that keypair, as long as you can provide the private key.

Deleting a Keypair Using Cockpit

  1. Click Network/Security > Keypairs.

  2. Click the keypair you want to delete.
    The keypair is selected.

  3. Click Delete keypair .
    A confirmation dialog box appears.

  4. Click Delete to validate.
    The keypair is deleted and no longer appears on the Keypair page.

Deleting a Keypair Using AWS CLI

To delete a keypair, use the delete-key-pair command following this syntax:

Request sample
$ aws ec2 delete-key-pair \
    --profile YOUR_PROFILE \
    --key-name MyKeyPair \

This command contains the following attributes that you need to specify:

  • (optional) profile: The named profile you want to use, created when configuring AWS CLI. For more information, see Installing and Configuring AWS CLI.

  • key-name: The name of the keypair you want to delete.

  • endpoint: The endpoint corresponding to the Region you want to send the request to.

The public key of the specified keypair is deleted.

Related Pages

Corresponding API Method

AWS™ and Amazon Web Services™ are trademarks of Amazon Technologies, Inc or its affiliates in the United States and/or other countries.