Shutdown your TiDB cluster

When the TiDB cluster is not needed, you can delete it with the following command inside of Google Cloud Shell:

helm delete tidb --purge

The above commands only delete the running pods, the data is persistent. Run the following commands to clean the data and the dynamically created persistent disks:

kubectl delete pvc -n tidb -l, &&
kubectl get pv -l,, -o name | xargs -I {} kubectl patch {} -p '{"spec":{"persistentVolumeReclaimPolicy":"Delete"}}'

Shut down the Kubernetes cluster

Once you have finished experimenting, you can delete the Kubernetes cluster with:

gcloud container clusters delete tidb