Uninstall KubeBlocks and kbcli
Uninstallation order:
-
Delete all clusters and backups before uninstalling KubeBlocks and kbcli.
kubectl delete cluster <clustername> -n namespace
kubectl delete backup <backname> -n namespace
-
Uninstall KubeBlocks.
Uninstall KubeBlocks
- Helm
- YAML
- kbcli
Delete all the clusters and resources created before performing the following command, otherwise the uninstallation may not be successful.
helm uninstall kubeblocks --namespace kb-system
Helm does not delete CRD objects. You can delete the ones KubeBlocks created with the following commands:
kubectl get crd -o name | grep kubeblocks.io | xargs kubectl delete
You can generate YAMLs from the KubeBlocks chart and uninstall using kubectl
. Use --version x.y.z
to specify a version and make sure the uninstalled version is the same as the installed one.
helm template kubeblocks kubeblocks/kubeblocks --namespace kb-system --version x.y.z | kubectl delete -f -
kbcli kubeblocks uninstall
Uninstall kbcli
Uninstall kbcli if you want to delete kbcli after your trial. Use the same option as the way you install kbcli.
- macOS
- Windows
- Linux
For curl
, run
sudo rm /usr/local/bin/kbcli
For brew
, run
brew uninstall kbcli
kbcli creates a hidden folder named ~/.kbcli
under the HOME directory to store configuration information and temporary files. You can delete this folder after uninstalling kbcli.
-
Go to the
kbcli
installation path and delete the installation folder.- If you install
kbcli
by script, go toC:\Program Files
and delete thekbcli-windows-amd64
folder. - If you customize the installation path, go to your specified path and delete the installation folder.
- If you install
-
Delete the environment variable.
- Click the Windows icon and click System.
- Go to Settings -> Related Settings -> Advanced system settings.
- On the Advanced tab, click Environment Variables.
- Double-click Path in User variables or System variables list.
- If you install
kbcli
by script, double-click Path in User variables. - If you customize the installation path, double-click Path based on where you created the variable before.
- If you install
- Select
C:\Program Files\kbcli-windows-amd64
or your customized path and delete it. This operation requires double confirmation.
-
Delete a folder named
.kbcli
.kbcli creates a folder named
.kbcli
under the C:\Users\username directory to store configuration information and temporary files. You can delete this folder after uninstalling kbcli.
Uninstall kbcli using the curl
command.
sudo rm /usr/local/bin/kbcli
kbcli creates a hidden folder named ~/.kbcli
under the HOME directory to store configuration information and temporary files. You can delete this folder after uninstalling kbcli.