Uninstalling a K3s Cluster

All nodes of the K3s cluster contain scripts located at /usr/local/bin/. You can make changes to the cluster using these scripts, including uninstallation.

If you are using Rancher, you first need to remove the cluster in Rancher, and then uninstall K3s on each node.

To remove a cluster in Rancher, go to Cluster Management, expand the cluster menu by clicking in the row with the desired cluster, and select Delete. Confirm your decision by typing the name of your cluster and clicking Delete.

To uninstall K3s on an agent node (worker), run:

/usr/local/bin/k3s-agent-uninstall.sh

To uninstall K3s on a server node (master), run:

/usr/local/bin/k3s-uninstall.sh