Skip to content

Commit b334ff2

Browse files
committed
Try to uninstall kubernetes on delete, for generic
1 parent 837410b commit b334ff2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/minikube/cmd/delete.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ func runDelete(cmd *cobra.Command, args []string) {
6262
}
6363

6464
// In the case of "none", we want to uninstall Kubernetes as there is no VM to delete
65-
if err == nil && cc.MachineConfig.VMDriver == constants.DriverNone {
65+
if err == nil && (cc.MachineConfig.VMDriver == constants.DriverNone || cc.MachineConfig.VMDriver == constants.DriverGeneric) {
6666
uninstallKubernetes(api, cc.KubernetesConfig, viper.GetString(cmdcfg.Bootstrapper))
6767
}
6868

0 commit comments

Comments
 (0)