How to Uninstall WSL in Windows 11

To uninstall WSL completely in Windows 11, remove it in three stages. First, delete your Linux distributions with wsl --unregister DistroName (or uninstall them from Settings > Apps). Next, remove WSL itself with wsl --uninstall, or uninstall Windows Subsystem for Linux from Installed apps. Finally, turn off the Windows Subsystem for Linux and Virtual Machine Platform features and restart. Unregistering a distribution permanently deletes its files, so export anything you want to keep first. Here are the steps in detail.

How to uninstall WSL in Windows 11: back up distributions, unregister them, uninstall WSL, turn off the Windows features and restart
Back up, remove distributions, remove WSL, then turn the features off. This is a drawing, not a screenshot.

Should you remove WSL completely?

Not always. Common reasons to uninstall, and the lighter option for each:

Reason Lighter option
Free up disk space Unregister distributions you don’t use, and keep WSL
A distribution is broken Unregister and reinstall just that distribution
Startup or memory use Run wsl --shutdown. WSL only runs when you use it
Company policy or security review Remove everything, as in Steps 1 to 6

Step 1: See what’s installed

Open Terminal (PowerShell or Command Prompt) and run:

wsl --list --verbose

You’ll see each distribution, such as Ubuntu or Debian, its state, and whether it uses WSL 1 or 2. Note the exact names. You’ll need them in Step 3.

Step 2: Back up anything you need (optional)

Each distribution stores its own files, including your Linux home folder. To keep a copy, export it to a file:

wsl --export Ubuntu D:\Backups\ubuntu.tar

You can bring it back later with wsl --import. Alternatively, copy specific files out through File Explorer. Open Linux in the File Explorer sidebar, or type \\wsl$ in the address bar.

Step 3: Remove your Linux distributions

Option A: Command line

  1. Run wsl --shutdown to stop everything.
  2. For each distribution, run wsl --unregister Ubuntu, replacing Ubuntu with the name from Step 1.

This deletes the distribution and all its data immediately, with no confirmation prompt.

Option B: Settings

  1. Go to Settings > Apps > Installed apps.
  2. Search for the distribution (for example, Ubuntu), click the … button, and choose Uninstall.

Uninstalling the app also removes its data. If a distribution still appears in wsl --list afterwards, unregister it with Option A.

Step 4: Uninstall WSL

On current versions of WSL, run this in Terminal:

wsl --uninstall

You can also go to Settings > Apps > Installed apps, search for Windows Subsystem for Linux, and choose Uninstall. On older setups, you may also see Windows Subsystem for Linux Update or WSLg Preview. Uninstall those too.

Step 5: Turn off the Windows features

  1. Press Windows + R, type optionalfeatures and press Enter.
  2. Clear the Windows Subsystem for Linux box.
  3. Clear Virtual Machine Platform as well, unless other software needs it (see the warning below).
  4. Click OK and restart when asked.

The same thing from an administrator terminal:

  • dism /online /disable-feature /featurename:Microsoft-Windows-Subsystem-Linux
  • dism /online /disable-feature /featurename:VirtualMachinePlatform

Warning: Docker Desktop, Android emulators and some other apps rely on Virtual Machine Platform. If you use them, leave it turned on.

Step 6: Check that WSL is gone

After restarting, run wsl --status. If Windows says WSL isn’t installed, or offers to install it, the removal worked. The Linux entry also disappears from File Explorer.

Reinstall or reset instead?

Troubleshooting

“The specified distribution was not found”

The name doesn’t match. Copy it exactly from wsl --list --verbose, including capitals.

wsl –uninstall isn’t recognized

You have an older WSL. Uninstall it from Installed apps and turn off the features as in Step 5.

Disk space wasn’t freed

Distributions store their data in a large virtual disk file. Unregistering removes it. If space still seems used, restart and check with Storage settings.

Virtualization settings

WSL 2 needed virtualization turned on in your PC’s firmware. You can leave it on, because it doesn’t affect anything else. See how to enable virtualization in Windows 11.

Frequently asked questions

Does uninstalling WSL delete my Windows files?

No. Only files stored inside the Linux distributions are deleted. Files in your Windows folders, including ones you opened from Linux through /mnt/c, stay where they are.

Will Docker Desktop still work?

Docker Desktop’s WSL 2 backend needs WSL. Switch Docker to another backend first, or keep WSL installed.

Summary

  1. List distributions with wsl --list --verbose, and export any you want to keep.
  2. Remove each with wsl --unregister Name.
  3. Run wsl --uninstall, or uninstall it from Installed apps.
  4. Turn off Windows Subsystem for Linux (and Virtual Machine Platform, if unused), then restart.

Get Our Free Newsletter

How-to guides and tech deals

You may opt out at any time.
Read our Privacy Policy