You can delete the SSH key pairs that are no longer needed. Deleted key pairs cannot be restored.
Prerequisites
The SSH key pairs that you want to delete are not bound to Elastic Compute Service (ECS) instances. For information about how to unbind an SSH key pair from an ECS instance, see Unbind an SSH key pair.
Procedure
Log on to the ECS console.
In the left-side navigation pane, choose .
In the upper-left corner of the top navigation bar, select a region.
Find the key pair that you want to delete. In the Actions column, click Delete.
NoteYou can also select multiple key pairs and click Delete in the lower part of the page.
In the Delete SSH Key Pair message, check the key pair information.
After you confirm that the key pair information is correct, click OK.