You are looking at the documentation of a prior release. To read the documentation of the latest release, please visit here.

Uninstall KubeStash

To uninstall KubeStash, run the following command:

Using Helm 3

In Helm 3, release names are scoped to a namespace. So, provide the namespace you used to install the operator when installing.

$ helm uninstall kubestash --namespace kubestash

Using YAML (with helm 3)

If you prefer to not use Helm, you can generate YAMLs from KubeStash chart and uninstall using kubectl.

$ helm template kubestash oci://ghcr.io/appscode-charts/kubestash \
        --version v2024.6.4 \
        --namespace kubestash --create-namespace \
        --set-file global.license="nothing" | kubectl delete -f -

Delete CRDs

The above uninstallation process will uninstall the KubeStash operator. However, it will keep the KubeStash registered CRDs so that you don’t lose your KubeStash objects i.e. BackupConfiguration, BackupStorage, etc. during re-installation. If you want to remove the KubeStash CRDs too, please run the following command.

kubectl delete crd -l=app.kubernetes.io/name=kubestash

If you want to delete the AppBinding CRD, run the following command.

 kubectl delete crd -l=app.kubernetes.io/name=catalog