The Windows Subsystem for Linux (WSL) is a compatibility layer for Windows 10 and Windows Server that allows users to run Linux binaries natively. WSL virtualizes a Linux kernel interface on top of Windows, so it only requires a minimal amount of RAM. And when not in use, the WSL driver isn’t loaded into memory, making it more efficient than a VM or container. In addition to giving access to the tools included with whichever Linux distro you choose to install, WSL can also run system level daemons (services) in the background. You can even install multiple Linux distributions and switch between them.
Linux distributions for use with WSL are managed via the Microsoft Store. At the time of writing, Ubuntu, openSUSE Leap, SUSE Linux Enterprise Server, Kali Linux, and Debian can be installed from the Store. One of the advantages of using WSL is that you can reset Linux distributions back to their default settings, wiping any applications you’ve updated or installed. Resetting a distribution is faster than removing it and then reinstalling it using the Microsoft Store.
If you don’t already have a Linux distribution installed in Windows 10, check out How to Install Windows Subsystem for Linux on Petri.
For the purposes of this article, I’m going to use Windows 10 version 1809. You might find that the following instructions don’t work in earlier versions of Windows 10. For example, prior to the Fall Creators Update, it wasn’t possible to uninstall WSL or remove a Linux distribution using the Microsoft Store.
I have Ubuntu Linux installed on my Windows 10 PC. The instructions that follow can be used to uninstall any Linux distribution.
Now start your Linux distribution. It will take a few minutes to reinstall Linux and you’ll be prompted to set up a new user.

Removing a Linux distribution is just as easy as performing a reset. Follow the instructions above for resetting Linux until you get to the distribution’s advanced options page in the Settings app. Then continue as shown below:
Removing and resetting Linux distributions with the Windows Subsystem for Linux is easy using standard Microsoft Store app management controls in the Settings app. In an upcoming article, I’ll show you how to manage multiple Linux distributions on the same Windows 10 PC.
No, uninstalling WSL itself (by disabling the optional Windows feature) makes your installed Linux distributions inaccessible. However, you can safely uninstall or reset individual Linux distributions without removing WSL entirely. Use commands like wsl –unregister <distribution_name> to remove specific distributions without affecting the overall subsystem.
To completely uninstall WSL and remove all traces, first uninstall all Linux distributions, then disable WSL feature through Windows Features, and finally delete the WSL directory in %LOCALAPPDATA% to remove any remaining files.
Choosing to uninstall WSL will not impact Windows performance negatively. In fact, it might free up some system resources if you weren’t actively using the subsystem.
Yes, you can reinstall WSL at any time through Windows Features or using PowerShell commands. The process to uninstall WSL and reinstall it later won’t affect your Windows system’s stability.
Yes. Docker Desktop on Windows relies on WSL 2 to run Linux containers. Uninstalling WSL will disrupt Docker Desktop functionality, preventing it from running Linux-based containers. To continue using Docker Desktop effectively, you must keep WSL installed and enabled, or switch to alternative container solutions that don’t require WSL.