Skip to content

Uninstall GPU Manager and K3s

Uninstall GPU Manager

The following helm uninstall command deletes the GPU Manager deployment, but leaves Custom Resource Definitions (CRDs) and user-created Custom Resources (CR's) in the cluster:

helm uninstall --namespace cattle-system mmai

Note: The command may take several minutes to execute without displaying any output in the terminal. Please be patient.

Upon successful uninstallation, you will see a message similar to the following:

release "mmai" uninstalled
To completely clean up all GPU Manager resources, CRDs, CRs, etc, run the cleanup.sh script:
wget https://raw.githubusercontent.com/MemVerge/mvai-public/refs/tags/v0.3.0/cleanup.sh
chmod +x cleanup.sh
sudo ./cleanup.sh

Uninstall K3s

To completely remove K3s from your system, run the following commands on the worker nodes

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

Remove remaining files and directories:

rm -rf /etc/rancher/k3s
rm -rf /var/lib/rancher/k3s
rm -rf /usr/local/bin/k3s
rm -rf /usr/local/bin/kubectl
rm -rf /usr/local/bin/crictl
rm -rf /usr/local/bin/ctr

To uninstall K3s on the management node(s), run the following:

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

Remove remaining files and directories:

rm -rf /etc/rancher/k3s
rm -rf /var/lib/rancher/k3s
rm -rf /usr/local/bin/k3s
rm -rf /usr/local/bin/kubectl
rm -rf /usr/local/bin/crictl
rm -rf /usr/local/bin/ctr