Skip to main content

Linux Uninstall

note

Uninstalling RKE2 deletes the cluster data and all of the scripts.

Depending on the method used to install RKE2, the uninstallation process varies.

RPM Method

To uninstall RKE2 installed via the RPM method from your system, simply run the commands corresponding to the version of RKE2 you have installed, either as the root user or through sudo. This will shutdown RKE2 process, remove the RKE2 RPMs, and clean up files used by RKE2.

The bundled rke2-uninstall.sh script will remove the corresponding RPM packages during the uninstall process. Simply run the following command:

/usr/bin/rke2-uninstall.sh

Tarball Method

To uninstall RKE2 installed via the Tarball method from your system, simply run the command below. This will terminate the process, remove the RKE2 binary, and clean up files used by RKE2.

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