Skip to main content
Version: nightly

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:

helm uninstall greptimedb-operator -n greptimedb-admin

uninstall the GreptimeDB Cluster

For Helm installations of the GreptimeDB cluster, use:

helm uninstall greptimedb -n greptimedb-cluster

If the GreptimeDB cluster was installed with kubectl, remove it with:

kubectl delete greptimedbcluster greptimedb -n greptimedb-cluster

Uninstall etcd

To remove etcd with Helm, run:

# Uninstall etcd.
helm uninstall etcd -n etcd-cluster

Deleting Custom Resource Definitions (CRDs)

NOTE

The CRDs will not be deleted by default when you uninstall the release unless you set crds.keep=false in the Helm installation command.

kubectl delete crds greptimedbclusters.greptime.io
kubectl delete crds greptimedbstandalones.greptime.io

Cleaning Up Namespaces

Finally, delete the associated namespaces:

kubectl delete namespace greptimedb-admin
kubectl delete namespace etcd-cluster
kubectl delete namespace greptimedb-cluster