Last updated on April 5th, 2023 at 12:36 pm.
Step 1 : Try removing the Minikube binary
First try (You try because the binary path may be different on your Linux distro) remove minikube by doing either of the following:
sudo rm /usr/bin/minikube
#or
sudo rm /usr/local/bin/minikube
Next : If you get the error cannot remove '/usr/.../minikube': No such file or directory
find the correct minikube path and remove it by piping it to xargs as follows:
which minikube | xargs sudo rm
Related posts:
Step 2 : Remove Minikube config files
Then finally remove the minikube configs in .kube and .minikube. If you need to save/back up any configuration files, then do so first.
rm -rf ~/.minikube ~/.kube
Step 3 : Optional – Remove kubectl
If you installed it via your package manager, remove it via your package manager, example on Debian:
sudo apt remove kubectl
Otherwise remove the binary as follows:
which kubectl | xargs sudo rm
That is how to remove or uninstall Minikube on a Linux OS.