5.12.0 5.11.0 5.10.0 5.9.0 5.8.0 5.7.0 5.6.0 5.5.0 5.4.0 5.3.0 5.2.0 5.1.0 5.0 4.10 4.9 4.8 4.7 4.6 4.5.3 4.5.2 4.5.1 4.5 4.4 4.3
5.12.0 5.11.0 5.10.0 5.9.0 5.8.0 5.7.0 5.6.0 5.5.0 5.4.0 5.3.0 5.2.0 5.1.0 5.0 4.10 4.9 4.8 4.7 4.6 4.5.3 4.5.2 4.5.1 4.5 4.4 4.3

K3s Uninstallation

Purpose

The purpose of this document is to uninstall the K3s Kubernetes Distribution.

All these commands are destructive and will result in irrecoverable data . 


Steps

Uninstall from Control Panel Node

To uninstall K3s from a Control Plane Node, run the following command:

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

Uninstall from Worker Node

To uninstall K3s from a worker node, run the following command:

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

Generic Steps for Any Nodes

1. Clean up the existing installation as well as the volume data (Data deletion warning) by running the following command:

Bash
rm -rf /var/lib/rancher /etc/rancher/ /var/lib/longhorn/;

and then reboot the system:

Bash
reboot




Quick Links