Sign InTry Free

Destroy TiDB Clusters in Kubernetes

This document describes how to deploy TiDB clusters in Kubernetes.

To destroy a TiDB cluster in Kubernetes, run the following commands:

helm delete <release-name> --purge

The above commands only removes the runining Pod with the data still retained. If you want the data to be deleted as well, you can use the following commands:

kubectl delete pvc -n <namespace> -l<release-name>,
kubectl get pv -l<namespace>,,<release-name> -o name | xargs -I {} kubectl patch {} -p '{"spec":{"persistentVolumeReclaimPolicy":"Delete"}}'
Download PDF
One-stop & interactive experience of TiDB's capabilities WITHOUT registration.
TiDB Dedicated
TiDB Serverless
Get Demo
Get Started
© 2024 PingCAP. All Rights Reserved.
Privacy Policy.