How to Completely Uninstall WSL from Windows 11

How to Completely Uninstall WSL from Windows 11

Last Updated

May 26, 2026

Posted In

In this tutorial, I’ll show you how to uninstall WSL and distros completely from Windows 11. Windows Subsystem for Linux lets developers run a GNU/Linux environment, including most command-line tools, utilities, and applications, directly on Windows without the overhead of a traditional virtual machine or dual-boot setup.

WSL (specifically WSL 2) has been supported on Windows 11 since its initial release in October 2021. Microsoft later separated WSL from the core operating system and made it available as a standalone app in the Microsoft Store. This move lets users get updates and new features much faster, without having to wait for major Windows updates.

If you have already installed WSL on your Windows 11 PC and if you no longer need it, there are several ways to uninstall it, depending on how completely you want to remove it.

Install and Update Third Party Applications with Patch My PC
Install and Update Third Party Applications with Patch My PC

Before you uninstall WSL completely

Before starting, I would like to mention that uninstalling WSL can mean different things, and I have listed all of them below.

  1. Remove a Linux distribution only: Uninstall Ubuntu but keep WSL installed.
  2. Unregister a distro: Deletes the distro and its filesystem.
  3. Remove the WSL app/package: Uninstalls the WSL application from Windows.
  4. Disable WSL platform features: Turns off the Windows components required for WSL.
  5. Fully uninstall WSL and its features: Deletes distros, WSL app, and disables all the related features.

Step 1: List Installed Linux Distros

If you want to completely remove everything related to WSL, here’s the best way to do it. Start by finding out which Linux distros are installed on your Windows 11. To check, open PowerShell as an administrator and run the command below.

wsl -l -v

You may use the below command as well.

wsl --list --verbose

In the image below, running the above command reveals that two Linux distributions are installed: Ubuntu-26.04 and Debian.

List Installed Linux Distros on Windows 11
List Installed Linux Distros on Windows 11

Step 2: Back up your data

Before uninstalling any Linux distros, back up any important files. You can export a distro by executing the below command. You may repeat the same in case you’ve got multiple distros on your PC.

wsl --export Debian Debian-backup.tar
Back up Linux Distros using PowerShell
Back up Linux Distros using PowerShell

Step 3: Unregister each Linux distro

Next, run the below commands in the PowerShell window to unregister each Linux distro that’s installed on your Windows 11 PC.

wsl --unregister Ubuntu 26.04
wsl --unregister Debian
Unregister each Linux distro
Unregister each Linux distro

Step 4: Uninstall the WSL app from Settings

In newer Windows 11 builds, WSL may appear as an installed app. To uninstall it, open Settings, go to Apps > Installed apps. Search for Windows Subsystem for Linux. Click the three-dot menu to
Select Uninstall.

You may also manually remove the Windows Subsystem for Linux Update and Linux distributions installed from the Microsoft Store.

On modern Windows 11 systems, Microsoft provides a built-in uninstall command. Open PowerShell as Administrator and run:

wsl --uninstall
Uninstall WSL from Windows 11
Uninstall WSL from Windows 11

Step 5: Disable required Windows features via DISM/PowerShell

If you prefer command-line tools, you can disable the needed Windows features directly using DISM or PowerShell. Both of these are demonstrated below.

DISM

Open Command Prompt as Administrator and run the below command.

dism.exe /online /disable-feature /featurename:Microsoft-Windows-Subsystem-Linux /norestart
dism.exe /online /disable-feature /featurename:VirtualMachinePlatform /norestart

PowerShell

Open PowerShell as Administrator and run the below command.

Disable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux -NoRestart
Disable-WindowsOptionalFeature -Online -FeatureName VirtualMachinePlatform -NoRestart

Step 6: Restart Windows

A reboot is usually required to complete the removal of WSL and its associated features. Proceed to the next step to confirm WSL removal.

How to check whether WSL is fully removed

Run the below PowerShell command to check if WSL is completely uninstalled from your Windows 11 PC.

wsl --status

After running the above command, if you see the message “The Windows Subsystem for Linux is not installed. You can install by running ‘wsl.exe –install‘, it means the WSL is uninstalled from your Windows 11 device.

How to check whether WSL is fully removed
How to check whether WSL is fully removed

Conclusion

WSL is a great feature for developers, power users, and anyone who wants Linux tools on Windows 11. But when you no longer need it, Windows 11 gives you several ways to remove it. If you only want to get rid of one distro, uninstalling that distro is enough. If you want a complete reset, unregister distros, uninstall the WSL app, disable the required Windows features, and restart your PC. And if you would like to reclaim every bit of space, check for leftover files afterward.

Leave a Reply

Your email address will not be published. Required fields are marked *

Prajwal Desai

Prajwal Desai is a highly accomplished technology expert and an 11-time Dual Microsoft MVP (Most Valuable Professional), specializing in Microsoft Intune, SCCM, Windows 365, Enterprise Mobility, and Windows. As a renowned author, speaker, and community leader, he is widely recognized for sharing his in-depth expertise and insights through his blog, YouTube channel, conferences, webinars, and other platforms.