Rate This Document
Findability
Accuracy
Completeness
Readability

Uninstalling KubeSphere and Kubernetes

Uninstalling KubeSphere and Kubernetes means removing them from your server. This operation is irreversible and there are no backups. Exercise caution when performing this operation. Perform the following operations on the master node.

  1. Delete a cluster.
    cd /home 
    ./kk delete cluster -f config-sample.yaml

    If the cluster is installed in the single-node mode, run the following command to delete the cluster:

    ./kk delete cluster

    After running the command for deleting the cluster, the prompt "Are you sure to delete this cluster? [yes/no]:" is displayed. Type yes and press Enter.

    If execute successfully is returned, the cluster is successfully deleted.

  2. Run the following command on all nodes to delete the ~/.kube directory and all its subdirectories and files:
    rm -rf ~/.kube