gpt-4.1-mini-2025-04-14· OpenAI
WildChat-4.8M (AI2)
uninstall k3s
- User
uninstall k3s
- Assistant
To uninstall k3s from a Linux system, you can follow these steps:
Using the uninstall script (recommended)
k3s provides an uninstall script that removes the service, binaries, and data:
- Run the uninstall script with root privileges:
sudo /usr/local/bin/k3s-uninstall.shThis script will stop the k3s service, remove the k3s binary, and clean up related directories like
/etc/rancher/k3sand/var/lib/rancher/k3s.
If the uninstall script is missing
If the uninstall script is not present, you can remove k3s manually with the following commands:
- Stop the k3s service:
sudo systemctl stop k3s- Disable the k3s service: