From 0592d98984f8f2fab41dedaad9aba972a9a94470 Mon Sep 17 00:00:00 2001 From: achiverram28 <97288756+achiverram28@users.noreply.github.com> Date: Wed, 24 May 2023 15:42:27 +0530 Subject: [PATCH 1/5] Update install-kubectl-macos.md Adding the delete kubectl in macOs --- .../docs/tasks/tools/install-kubectl-macos.md | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/content/en/docs/tasks/tools/install-kubectl-macos.md b/content/en/docs/tasks/tools/install-kubectl-macos.md index 5fdda83fe3..fe8581ddf2 100644 --- a/content/en/docs/tasks/tools/install-kubectl-macos.md +++ b/content/en/docs/tasks/tools/install-kubectl-macos.md @@ -287,6 +287,32 @@ Below are the procedures to set up autocompletion for Bash, Fish, and Zsh. rm kubectl-convert kubectl-convert.sha256 ``` +### Deletion of kubectl on macOS + +The following methods exist for deleting ```kubectl``` on macOS: + +Type in the below command to check where kubectl is installed on your macOS: + +```bash +where kubectl +``` + +(Usually the kubectl installation guides to move the ```kubectl``` binary to ```/usr/local/bin/``` , like ```/usr/local/bin/kubectl```) + +See the outputs of the command and type in the below command to remove it + +```bash +sudo rm ##replace path with that of the output , eg : sudo sudo rm /usr/local/bin/kubectl +``` + +If you have installed ```kubectl``` on macOS using ```brew``` , you can just type in the below command to remove it. + +```bash +brew remove kubectl +``` + ## {{% heading "whatsnext" %}} {{< include "included/kubectl-whats-next.md" >}} + + From ce2de2feaeb9b3988b79c31c0aa89b754182cab4 Mon Sep 17 00:00:00 2001 From: achiverram28 <97288756+achiverram28@users.noreply.github.com> Date: Fri, 26 May 2023 01:37:28 +0530 Subject: [PATCH 2/5] Modified deletion of kubectl on macOS. --- .../docs/tasks/tools/install-kubectl-macos.md | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/content/en/docs/tasks/tools/install-kubectl-macos.md b/content/en/docs/tasks/tools/install-kubectl-macos.md index fe8581ddf2..148354118f 100644 --- a/content/en/docs/tasks/tools/install-kubectl-macos.md +++ b/content/en/docs/tasks/tools/install-kubectl-macos.md @@ -287,25 +287,28 @@ Below are the procedures to set up autocompletion for Bash, Fish, and Zsh. rm kubectl-convert kubectl-convert.sha256 ``` -### Deletion of kubectl on macOS +### Uninstall kubectl on macOS -The following methods exist for deleting ```kubectl``` on macOS: +Depending on how you installed ```kubectl```, use one of the following methods. -Type in the below command to check where kubectl is installed on your macOS: +### Uninstall kubectl using the command-line + +1. Locate the ```kubectl``` binary on your system: ```bash where kubectl ``` -(Usually the kubectl installation guides to move the ```kubectl``` binary to ```/usr/local/bin/``` , like ```/usr/local/bin/kubectl```) - -See the outputs of the command and type in the below command to remove it +2. Remove the ```kubectl``` binary: ```bash -sudo rm ##replace path with that of the output , eg : sudo sudo rm /usr/local/bin/kubectl +sudo rm ``` +Replace with the path to the ```kubectl``` binary from the previous step. For example, ```sudo rm /usr/local/bin/kubectl``` -If you have installed ```kubectl``` on macOS using ```brew``` , you can just type in the below command to remove it. +### Uninstall kubectl using homebrew + +If you installed ```kubectl``` using ```homebrew```, run the following command: ```bash brew remove kubectl From e5854085c9aa6b64ec79e83ee6d7305cc5e4d77d Mon Sep 17 00:00:00 2001 From: achiverram28 <97288756+achiverram28@users.noreply.github.com> Date: Fri, 26 May 2023 21:39:56 +0530 Subject: [PATCH 3/5] Modified the deletion of kubectl on macOS --- content/en/docs/tasks/tools/install-kubectl-macos.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/content/en/docs/tasks/tools/install-kubectl-macos.md b/content/en/docs/tasks/tools/install-kubectl-macos.md index 148354118f..aff64d8d2a 100644 --- a/content/en/docs/tasks/tools/install-kubectl-macos.md +++ b/content/en/docs/tasks/tools/install-kubectl-macos.md @@ -289,26 +289,26 @@ Below are the procedures to set up autocompletion for Bash, Fish, and Zsh. ### Uninstall kubectl on macOS -Depending on how you installed ```kubectl```, use one of the following methods. +Depending on how you installed `kubectl`, use one of the following methods. ### Uninstall kubectl using the command-line -1. Locate the ```kubectl``` binary on your system: +1. Locate the `kubectl` binary on your system: ```bash where kubectl ``` -2. Remove the ```kubectl``` binary: +2. Remove the `kubectl` binary: ```bash sudo rm ``` -Replace with the path to the ```kubectl``` binary from the previous step. For example, ```sudo rm /usr/local/bin/kubectl``` +Replace `` with the path to the `kubectl` binary from the previous step. For example, `sudo rm /usr/local/bin/kubectl`. ### Uninstall kubectl using homebrew -If you installed ```kubectl``` using ```homebrew```, run the following command: +If you installed `kubectl` using Homebrew, run the following command: ```bash brew remove kubectl From 19d1bc09aada77fd66964d57ecd2e8e83de21bd6 Mon Sep 17 00:00:00 2001 From: achiverram28 <97288756+achiverram28@users.noreply.github.com> Date: Fri, 26 May 2023 22:28:43 +0530 Subject: [PATCH 4/5] changes with respect to nit --- content/en/docs/tasks/tools/install-kubectl-macos.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/en/docs/tasks/tools/install-kubectl-macos.md b/content/en/docs/tasks/tools/install-kubectl-macos.md index aff64d8d2a..5ed9ebedfe 100644 --- a/content/en/docs/tasks/tools/install-kubectl-macos.md +++ b/content/en/docs/tasks/tools/install-kubectl-macos.md @@ -299,7 +299,7 @@ Depending on how you installed `kubectl`, use one of the following methods. where kubectl ``` -2. Remove the `kubectl` binary: +1. Remove the `kubectl` binary: ```bash sudo rm From 37ca580a7d9ae4896a4f4a17ff5f7daf3816a238 Mon Sep 17 00:00:00 2001 From: achiverram28 <97288756+achiverram28@users.noreply.github.com> Date: Fri, 26 May 2023 23:29:01 +0530 Subject: [PATCH 5/5] Update the deletion of kubectl on macOS --- .../docs/tasks/tools/install-kubectl-macos.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/content/en/docs/tasks/tools/install-kubectl-macos.md b/content/en/docs/tasks/tools/install-kubectl-macos.md index 5ed9ebedfe..0ab0c494c0 100644 --- a/content/en/docs/tasks/tools/install-kubectl-macos.md +++ b/content/en/docs/tasks/tools/install-kubectl-macos.md @@ -293,18 +293,18 @@ Depending on how you installed `kubectl`, use one of the following methods. ### Uninstall kubectl using the command-line -1. Locate the `kubectl` binary on your system: +1. Locate the `kubectl` binary on your system: -```bash -where kubectl -``` + ```bash + where kubectl + ``` -1. Remove the `kubectl` binary: +1. Remove the `kubectl` binary: -```bash -sudo rm -``` -Replace `` with the path to the `kubectl` binary from the previous step. For example, `sudo rm /usr/local/bin/kubectl`. + ```bash + sudo rm + ``` + Replace `` with the path to the `kubectl` binary from the previous step. For example, `sudo rm /usr/local/bin/kubectl`. ### Uninstall kubectl using homebrew