If you no longer require a key pair, you can delete it. Note that a deleted key pair is not recoverable. Existing instances that have used the key pair will not be affected, and the deleted key pair name will remain associated to the instance.

Note
  • If you delete a key pair that is still bound to an instance, its name is not available for you to create or import a key pair again. Otherwise, an error message “The key pair already exists.” will appear when you are using the same name to create or import a key pair.
  • If you delete a key pair that is not bound to an instance, its name is still available for you to create or import a key pair again.

See the following steps to delete one or more key pairs:

  1. Log on to the ECS console.
  2. In the left-side navigation pane, click Networks & Security > Key Pairs.
  3. Select one or more key pairs.
  4. Click Delete.