Example Procedure: Deleting a Volume

Before deleting a volume, ensure that it is not attached to any running vServers.

To delete a volume, complete the following steps:

  1. Run the following command:

    ./iaas-delete-volume --base-url https://<localhost>/ -a ak.file --volume-id VOL-f23a8ba1-ec55-4159-bbdf-de220d18a1c4

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

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

    ./iaas-describe-volumes --base-url https://<localhost>/ -a ak.file --ids VOL-f23a8ba1-ec55-4159-bbdf-de220d18a1c4

    This command should return empty output, as the specified volume is deleted.