The Windows Subsystem for Linux (WSL) on Windows 11 makes it possible to run Linux distributions directly on a Windows PC without using a virtual machine. It is primarily used by developers, system administrators, and power users who need Linux tools alongside Windows stuff. However if you have installed it, which is easy, uninstalling it is not quite that simple, so follow along as we show you how to remove WSL and Linux Distros from Windows 11.

Takeaways:

  1. Learn how to uninstall Windows Subsystem for Linux (WSL) and Linux Distros on Windows 11.
  2. How do you uninstall WSL on Windows 11?

Why Remove Windows Subsystem for Linux (WSL)?

There are quite a few reasons you might want to uninstall WSL on Windows 11:

  • You no longer use Linux tools or distributions.
  • You want to free up storage space.
  • WSL is causing virtualization conflicts.
  • You are troubleshooting development issues.
  • You want to reset your Linux environment completely.

Most of the time, uninstalling a Linux distribution is enough. But, if you want to remove every WSL component from the system, you'll need to follow a more involved process, which you can find below.

What Gets Removed During the Process

A complete WSL uninstall removes:

  • Installed Linux distributions.
  • The WSL application package.
  • Linux kernel components.
  • WSLg and graphical Linux support.
  • Virtual Machine Platform dependencies.

Once uninstalled, Linux commands and distributions will no longer run on the system. You will have to reinstall WSL again to get the ability back)

Is Disabling WSL the Same as Uninstalling it?

No. Disabling WSL only turns off the feature temporarily. The application package and Linux distributions are still installed. A full uninstall removes all related components and storage usage from the operating system.

How to Uninstall WSL on Windows 11 (Windows Subsystem for Linux)

Before uninstalling WSL, remove all installed Linux distributions. Removing distributions prevent leftover files and virtual disk storage from remaining on the system.

  • Open Settings.
  • Click Apps.
  • Open Installed apps.
  • Locate your Linux distribution, such as Ubuntu or Debian.
  • Click the three-dot menu next to the app.
  • Select Uninstall.
  • Confirm by clicking Uninstall again.

How to Uninstall WSL on Windows 11 (Windows Subsystem for Linux)

Note: Repeat these steps for every Linux distribution installed on your computer.

Remove WSL Components with PowerShell

After uninstalling the Linux distributions, remove the WSL application package. This command removes the WSL package from Windows 11. Earlier versions of Windows 11 allowed users to uninstall WSL directly from Settings. But Microsoft has moved the component into System Components, and the uninstall option no longer appear (newer versions of Windows). The means, PowerShell is the most reliable way to remove the WSL package completely.

  • Open Start.
  • Search for PowerShell.
  • Right-click the result and select Run as administrator.
  • Type the following command and press Enter:

Get-AppxPackage MicrosoftCorporationII.WindowsSubsystemForLinux | Remove-AppxPackage

How to Uninstall WSL on Windows 11

Disable WSL Features in Windows 11

The final step is disabling the Windows features that power WSL and its virtualization layer.

  • Open Settings.
  • Click System.
  • Open Optional features.
  • Under Related settings, click More Windows features.
  • Clear the following options:
    • Windows Subsystem for Linux
    • Virtual Machine Platform
  • Click OK.
  • Restart your computer.
  • After the restart, WSL will be fully removed from Windows 11.

Should You Completely Remove WSL?

For most users, uninstalling Linux distributions is enough. Completely removing WSL is usually only necessary when trying to fix problems, resetting a development environment, or eliminating virtualization dependencies. The process works reliably, but it still feels more complicated than uninstalling a standard Windows feature because WSL components are spread across multiple areas of the operating system.If you want to use Linux again later, you can reinstall WSL using Microsoft Store packages or the wsl --install command in PowerShell.