Destroy the Cluster
This guide will remove all resources created by the documentation in this Deploy on Kubernetes chapter.
Uninstall the GreptimeDB Operator
To uninstall the GreptimeDB Operator using Helm, execute:
shell
helm uninstall greptimedb-operator -n greptimedb-adminhelm uninstall greptimedb-operator -n greptimedb-adminuninstall the GreptimeDB Cluster
For Helm installations of the GreptimeDB cluster, use:
shell
helm uninstall greptimedb -n greptimedb-clusterhelm uninstall greptimedb -n greptimedb-clusterIf the GreptimeDB cluster was installed with kubectl, remove it with:
shell
kubectl delete greptimedbcluster greptimedb -n greptimedb-clusterkubectl delete greptimedbcluster greptimedb -n greptimedb-clusterUninstall etcd
To remove etcd with Helm, run:
shell
# Uninstall etcd.
helm uninstall etcd -n etcd# Uninstall etcd.
helm uninstall etcd -n etcdDeleting Custom Resource Definitions (CRDs)
shell
kubectl delete crds greptimedbclusters.greptime.iokubectl delete crds greptimedbclusters.greptime.ioCleaning Up Namespaces
Finally, delete the associated namespaces:
shell
kubectl delete namespace greptimedb-admin
kubectl delete namespace etcd
kubectl delete namespace greptimedb-clusterkubectl delete namespace greptimedb-admin
kubectl delete namespace etcd
kubectl delete namespace greptimedb-cluster