0

I installed WSL back when it was still in beta, in 2016. A few days ago, I also installed Ubuntu from the Windows store, which has a more recent version (18.04), and spiffy text colours (and I presume other improvements under the hood).

I'd like to remove WSL, since I don't really need two Linux shells on my machine. Is it possible to do this? If so, how would I go about doing it? I've copied everything I need from my WSL directories to the new subsystem.

2

I'd like to remove WSL, since I don't really need two Linux shells on my machine. Is it possible to do this? If so, how would I go about doing it?

You simply run the following command in an elevated PowerShell prompt.

lxrun /uninstall /full

If you upgrade to Windows 10 Fall Creators Update from an earlier Windows 10 release upon which you installed WSL, your existing distro will remain intact. However, we STRONGLY encourage you to install a new Store-delivered distro ASAP and migrate any necessary files, data, etc. from your legacy distro to your new distro. To remove the legacy distro from your machine, run the following from a Command Line or PowerShell instance

You can also remove the legacy instance manually by running the following command in an elevated PowerShell prompt.

rm -Recurse $env:localappdata/lxss/

If you wish, you can manually delete your legacy instance. This may be required if you encounter issues uninstalling the legacy distro using lxrun.exe, or are running Windows 10 Spring 2018 Update (or later) which do not ship with lxrun.exe.

Uninstalling/Removing the legacy distro

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.