https://rancher.com/ logo
Title
b

brave-afternoon-4801

07/01/2022, 2:04 PM
I am having an issue getting k3s to delete everything, which is strange. Background: I've used the official install shell script to install directly onto an ubuntu workstation, and am using the following commands to wipe the machine
sudo systemctl stop k3s
sudo k3s-killall.sh
docker rm -f $(docker ps -aq)
sudo rm -rf /var/lib/rancher /var/lib/kubelet
However, when I start k3s again, there are containers from a helm chart I was playing with that are still being created. What is the proper way to wipe everything?
1
nevermind. pebkac. i edited where the data directory is and didn't adjust
b

bulky-sunset-52084

07/01/2022, 6:23 PM
there is a
k3s-uninstall.sh
that will wipe everything too
Killall will just stop everything. Also there is no need for docker commands since k3s uses containerd