3.4 Removing NDB Cluster

To stop and delete NDB Cluster pods from Kubernetes, run the following command:

> kubectl delete -f docs/examples/example-ndb.yaml
ndbcluster.mysql.oracle.com/example-ndb deleted

Alternatively, you can use the name, like this:

> kubectl delete ndbcluster example-ndb

Either of these commands stops all NDB Cluster nodes and removes all related pods from the Kubernetes cluster. Any data is lost unless the NDB Cluster was deployed using a persistent volume (see dataNodePVCSpec in Section 5.5, “NdbClusterSpec Resource”, for more information about this).