Skip to content

Commit 42585e3

Browse files
committed
Add cleanup commands to kubectl Windows install
1 parent c7a0cb0 commit 42585e3

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

content/en/docs/tasks/tools/install-kubectl-windows.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,12 @@ The following methods exist for installing kubectl on Windows:
7272
kubectl version --client --output=yaml
7373
```
7474

75+
1. After installing the plugin, clean up the installation files:
76+
77+
```bash
78+
del kubectl.exe kubectl.exe.sha256
79+
```
80+
7581
{{< note >}}
7682
[Docker Desktop for Windows](https://docs.docker.com/docker-for-windows/#kubernetes) adds its own version of `kubectl` to `PATH`.
7783
If you have installed Docker Desktop before, you may need to place your `PATH` entry before the one added by the Docker Desktop installer or remove the Docker Desktop's `kubectl`.
@@ -191,6 +197,12 @@ Below are the procedures to set up autocompletion for PowerShell.
191197

192198
If you do not see an error, it means the plugin is successfully installed.
193199

200+
1. After installing the plugin, clean up the installation files:
201+
202+
```bash
203+
del kubectl-convert.exe kubectl-convert.exe.sha256
204+
```
205+
194206
## {{% heading "whatsnext" %}}
195207

196208
{{< include "included/kubectl-whats-next.md" >}}

0 commit comments

Comments
 (0)