Breadcrumbs

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