3.4.2. The delete cluster Command

delete cluster cluster_name

This command deletes the cluster named cluster_name; that is, it removes the MySQL Cluster Manager files relating to this cluster. delete cluster does not remove any MySQL Cluster binaries from hosts.

This example demonstrates how to delete a cluster named mycluster:

mcm> delete cluster mycluster;
+------------------------------+
| Command result               |
+------------------------------+
| Cluster deleted successfully |
+------------------------------+
1 row in set (1.22 sec)

This command fails if the cluster to be deleted is running, as shown here:

mcm> delete cluster mycluster;
ERROR 5010 (00MGR): All processes must be stopped to delete cluster mycluster

You must shut down the cluster first, using stop cluster (see Section 3.4.4, “The stop cluster Command”).