Skip to content

Instantly share code, notes, and snippets.

@robinkraft
Created July 26, 2018 21:01
Show Gist options
  • Star 30 You must be signed in to star a gist
  • Fork 16 You must be signed in to fork a gist
  • Save robinkraft/a0987b50de8b45e4bdc907d841db8f23 to your computer and use it in GitHub Desktop.
Save robinkraft/a0987b50de8b45e4bdc907d841db8f23 to your computer and use it in GitHub Desktop.
minikube stop; minikube delete &&
docker stop $(docker ps -aq) &&
rm -rf ~/.kube ~/.minikube &&
sudo rm -rf /usr/local/bin/localkube /usr/local/bin/minikube &&
launchctl stop '*kubelet*.mount' &&
launchctl stop localkube.service &&
launchctl disable localkube.service &&
sudo rm -rf /etc/kubernetes/ &&
docker system prune -af --volumes
@donhector
Copy link

If running minikube as sudo, you are on Ubuntu 16.04+ and if you had other docker images you want to keep around:

sudo minikube stop; sudo minikube delete &&
docker stop $(docker ps -aq) &&
docker system prune -f --volumes &&
sudo rm -rf ~/.kube ~/.minikube &&
sudo rm -rf /usr/local/bin/localkube /usr/local/bin/minikube &&
sudo systemctl stop '*kubelet*.mount' &&
sudo systemctl stop localkube.service &&
sudo systemctl disable localkube.service &&
sudo rm -rf /etc/kubernetes/

@SindhuBalasundaram
Copy link

Thank you...its worked

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment