This topic describes how to delete an OceanBase cluster by using ob-operator.
Procedure
Take the ob-test cluster in the obcluster namespace as an example.
Run the following command to query the custom resources of all OceanBase clusters:
kubectl get obcluster -AHere is an example of typical output:
NAMESPACE NAME AGE obcluster ob-test 148mRun the following command to delete a specific OceanBase cluster:
kubectl delete obcluster ob-test -n obclusterCheck whether the cluster and related resources are deleted.
After you delete a cluster, you can run the following commands to check whether the related resources are deleted.
Check whether the pods are deleted:
kubectl get pods -n obclusterCheck whether the tenants are deleted:
kubectl get tenants -n obclusterCheck whether the backup files are deleted:
kubectl get tenantbackups -n obcluster