Skip to content

Commit 951880b

Browse files
committed
added tear-down instructions
so that the user can clean up their environment
1 parent 0c86d83 commit 951880b

File tree

1 file changed

+25
-7
lines changed

1 file changed

+25
-7
lines changed

wsl/tutorial/develop-with-ubuntu-wsl.md

Lines changed: 25 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,6 @@ Installing: Ubuntu 24.04 LTS
8787
[==========================72.0%========== ]
8888
```
8989

90-
At any time, you can run `wsl -l -v` to see all your currently installed WSL distros, whether they are running and the version of WSL that they are using:
91-
92-
```{code-block} text
93-
NAME STATE VERSION
94-
Ubuntu-20.04 Stopped 2
95-
* Ubuntu-24.04 Stopped 2
96-
```
9790
After installation, your new Ubuntu instance will open.
9891

9992
### Log in to Ubuntu and run commands
@@ -467,6 +460,31 @@ The image can then be used in your HTML:
467460
<img src="image.png">
468461
```
469462

463+
## Removing your instance
464+
465+
You can check what instances you have installed currently with:
466+
467+
```{code-block} text
468+
> wsl -l -v
469+
```
470+
471+
This outputs the installed WSL distros, whether they are running, and the
472+
version of WSL that they are using:
473+
474+
```{code-block} text
475+
NAME STATE VERSION
476+
Ubuntu-20.04 Stopped 2
477+
* Ubuntu-24.04 Stopped 2
478+
```
479+
480+
Confirm that the instance you want to remove is `Stopped`.
481+
482+
Then remove it with the following command:
483+
484+
```{code-block} text
485+
> wsl --unregister Ubuntu-24.04
486+
```
487+
470488
## Enjoy Ubuntu on WSL!
471489

472490
In this tutorial, we set up Ubuntu on WSL as a Linux development environment on Windows.

0 commit comments

Comments
 (0)