Skip to main content
Skip table of contents

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

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.