How to Wipe a WSL Distro in Windows Subsystem for Linux

After a lot of testing, you’ve installed many apps in the instance. In some cases, you want to factory reset the instance to the default settings to get a clean and fresh one. In WSL 2, you can unregister the instance then install the new one manually. But it could be a boring task if you need to it frequently.

How to Reduce Memory (RAM) Consumes in WSL 2

In some cases, you want to configure or limit the memory (RAM) for a WSL instance. By default, WSL will take 50% of the host memory. You can check how much memory and swap space are allocated to WSL using the free command from within a WSL distribution: