Example Procedure: Deleting a Key Pair

To delete a key pair, complete the following steps:

  1. Run the following command:

    ./iaas-delete-key-pair --base-url https://<localhost>/ --access-key-file ak.file --key-name myKeyPair

    The command deletes the specified key pair. The command does not return any value; only the command prompt is displayed.

  2. Verify the deletion by running the iaas-describe-key-pairs command, as in the following example:

    ./iaas-describe-key-pairs --base-url https://<localhost>/ -a ak.file

    This command returns the list of all key pairs in your Account. In the output, you should not see the key pair that you deleted.