5.3.7 Deleting a Cluster

This section discusses deleting a cluster using the Heketi CLI. Make sure the cluster has no volumes, nodes or devices listed in the Heketi topology (using the heketi-cli topology info command) before you remove it.

To delete a cluster:

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

    # heketi-cli cluster list
    Clusters:
    Id:7c1cf54ff4b5ab41f823ac592ba68ca5 [file][block]
  2. Use the heketi-cli cluster delete command to delete the cluster using the cluster Id:

    # heketi-cli cluster delete 7c1cf54ff4b5ab41f823ac592ba68ca5
    Cluster 7c1cf54ff4b5ab41f823ac592ba68ca5 deleted