5.3.4 Deleting a Volume

This section discusses deleting a volume using the Heketi CLI.

To delete a volume:

  1. Use the heketi-cli volume list command to get a list of the volumes managed by Heketi:

    # heketi-cli volume list
    Id:2ab33ebc348c2c6dcc3819b2691d0267    Cluster:7c1cf54ff4b5ab41f823ac592ba68ca5    
  2. Use the heketi-cli volume delete command to delete a volume using the volume Id:

    # heketi-cli volume delete 2ab33ebc348c2c6dcc3819b2691d0267
    Volume 2ab33ebc348c2c6dcc3819b2691d0267 deleted