Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

donhector commented Apr 18, 2019

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

SindhuBalasundaram commented Aug 19, 2019

Thank you...its worked

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