52

I came to the realization that Windows 10 Docker has the Kubernetes options in it now, so I want to completely uninstall minikube and use the Kubernetes version that comes with docker windows instead.

How can I completely uninstall minikube in windows 10?

PolarBear10
  • 2,065
  • 7
  • 24
  • 55

1 Answers1

80

This as simple as running:

minikube stop & REM stops the VM

minikube delete & REM deleted the VM

Then delete the .minikube and .kube directories usually under:

C:\users\{user}\.minikube

and

C:\users\{user}\.kube

Or if you are using chocolatey:

C:\ProgramData\chocolatey\bin\minikube stop
C:\ProgramData\chocolatey\bin\minikube delete
choco uninstall minikube
choco uninstall kubectl
Rico
  • 58,485
  • 12
  • 111
  • 141
  • 1
    Just to extend, for osx or *nix users, same minikube commands and `rm $HOME/.minikube` and `rm $HOME/.kube`. – Sumit Murari Nov 13 '18 at 06:02
  • @Rico when I do where `minikube` , I get `C:\ProgramData\chocolatey\bin\minikube.exe` , as I used choclatey to download and install it.Can you kindly extend your answer so it includes those who installed minikube using chocolatey ? thanks – PolarBear10 Nov 14 '18 at 14:47
  • @murarisumit please free to add this to the answer so it helps users from all platforms – PolarBear10 Nov 14 '18 at 14:48
  • 1
    @Matthew added to the answer. Thx! – Rico Nov 14 '18 at 15:33
  • @Rico looks like this also works ´choco uninstall minikube´ and ´choco uninstall kubectl´ – PolarBear10 Nov 14 '18 at 16:00
  • @Rico I was able to uninstall minikube and kubectl by using the commands you provide. However, I cannot remove the machines since they are 'Device or resource busy'. I have tried to umount them by using the command 'umount ~/.minikube' but I have got 'Invalid argument'. Any ideas how to go? – Joe Nov 15 '19 at 07:05
  • @Joe you have to provide the full path to `umount` – Rico Nov 15 '19 at 18:22
  • @Rico even with full path: /c/Users/myusername/.minikube I am still getting the same message: umount: /c/Users/myusername/.minikube: Invalid argument Any ideas of why could this be happening? – Joe Nov 27 '19 at 07:26
  • 1
    @Joe sounds like you may be using mount for windows that has different options. https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/mount – Rico Nov 27 '19 at 19:45
  • @Rico I wonder if your last command is unnecessary as `minikube uninstall` already removed it? `PS C:\ProgramData> choco uninstall kubectl Chocolatey v1.1.0 Uninstalling the following packages: kubectl kubectl is not installed. Cannot uninstall a non-existent package. ` – likejudo Jul 15 '22 at 14:56