Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove Kubectl from ubuntu 16.04 LTS

I've followed guide to install kubectl for testing in development environment on Ubuntu 16.04.

Now I would like to remove Kubectl from ubuntu.

like image 702
Gparmar Avatar asked Jul 03 '17 11:07

Gparmar


1 Answers

Depending on the method you chose in https://kubernetes.io/docs/tasks/tools/install-kubectl/, it can be any of these:

  • Install kubectl binary via curl: sudo rm /usr/local/bin/kubectl
  • Download as part of the Google Cloud SDK: gcloud components remove kubectl
  • Install with snap on Ubuntu (just as Gparmar said): snap remove kubectl

In addition, you may need to remove the configuration files in ~/.kube.

like image 198
Javier Salmeron Avatar answered Sep 21 '22 15:09

Javier Salmeron