Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Some links on this page are affiliate links: if you buy through them we may earn a commission, at no extra cost to you.

To completely uninstall Windows Subsystem for Linux (WSL) on Windows 11, first back up anything important, unregister every installed Linux distribution, remove the related apps, uninstall the WSL package if it appears, disable the WSL Windows feature, and restart your PC. Disabling Virtual Machine Platform is optional because Docker Desktop, Windows Sandbox, Android emulators, and other virtualization tools may depend on it.

Important: wsl --unregister permanently deletes the selected distribution’s Linux filesystem, installed packages, settings, and user files. Export the distribution first if you may need anything later.

Choose what you want to remove

“Uninstalling WSL” can mean three different things:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  • Remove one distribution: Delete Ubuntu, Debian, Kali, or another distro while keeping WSL installed.
  • Remove WSL but keep virtualization support: Delete the distributions and WSL components while leaving Virtual Machine Platform enabled for other software.
  • Remove WSL completely: Delete all distributions, remove WSL apps and features, and optionally disable Virtual Machine Platform.

The complete-removal procedure below applies to the third option.

#1 Best Overall
Password Reset Disk for Windows 7, 8.1, 10, 11, Windows Password Recovery USB, Password Reset Tool
  • FOR FULL INSTRUCTION PLEASE READ DESCRIPTION
  • Step 1: Boot from the USB Flash Drive - Insert the USB flash drive into an available USB port on your computer. - Turn on your computer or restart it if it’s already on. - As the computer starts, press the key that opens the boot menu. This key varies by manufacturer and model, but it’s often F2, F10, Esc, or Delete. - In the BIOS/UEFI setup menu, locate the Boot Options or Boot Order section. - Use the arrow keys to select your USB drive and move it to the top of the boot priority list. - Save your changes and exit the BIOS/UEFI setup. Your computer will now boot from the USB flash drive.
  • After that its will take few minutes to reset Windows login password
  • Package includes instruction how to use "Password reset USB" software

Before uninstalling WSL

Check whether you use Docker Desktop, Windows Sandbox, an Android emulator, Hyper-V-related workflows, or another application that relies on virtualization. You can remove WSL without disabling Virtual Machine Platform if those programs still need it.

Also check for files stored inside your Linux distributions. If you need them, export each distribution before deleting it. An export is useful for recovery, but copy especially important files to a separate backup location as well.

Check installed WSL distributions

Open Windows Terminal or PowerShell and run:

wsl --list --verbose

You can also use the shorter form:

wsl -l -v

The command lists registered distributions and shows whether each uses WSL 1 or WSL 2. Names may include version suffixes or custom names, such as Ubuntu, Ubuntu-22.04, Debian, kali-linux, or an imported distribution. Use the exact name displayed by the command.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

If no distributions are listed, skip the export and unregister steps.

See Microsoft’s WSL command reference for the current command syntax.

Back up a distribution before deleting it

Export a distribution to a TAR archive:

wsl --export <DistroName> C:Pathbackup.tar

For example:

wsl --export Ubuntu C:UsersPublicubuntu-backup.tar

Later, you can restore the archive with:

wsl --import Ubuntu-Restored C:WSLUbuntu-Restored C:UsersPublicubuntu-backup.tar

The export can include the distribution’s Linux filesystem, installed packages, and user files. It is not a substitute for a separate backup of critical documents.

Remove only one Linux distribution

If you want to remove Ubuntu or another distro while keeping WSL, stop running instances and unregister only that distribution:

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
wsl --shutdown
wsl --unregister Ubuntu

Replace Ubuntu with the exact name shown by wsl --list --verbose. For multiple distributions, unregister each one separately:

wsl --unregister Ubuntu
wsl --unregister Debian
wsl --unregister kali-linux

This deletes the selected distribution and its data. It does not necessarily uninstall the WSL platform or the distribution’s Windows app package.

Verify the result with:

wsl --list

Completely uninstall WSL from Windows 11

1. Stop WSL

Run:

wsl --shutdown

This stops running WSL virtual machines before you remove their distributions and supporting components.

2. Unregister every distribution

List the distributions again, then unregister each one:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #2
Lexar A30E USB 3.2 Gen 1 Flash Drive 128GB 2-Pack
  • Lightweight and convenient: Lexar JumpDrive A30E (USB Type-A) boasts a slim, portable design for easy device compatibility; lightweight at 7.41 g
  • Transfer speeds up to 100 MB/s: 10x faster than standard USB 2.0 drives; Based on internal testing, performance may vary depending upon the host device, interface, and usage conditions
  • Wide compatibility: Compatible with tablets, laptops, Macs, and traditional Type-A devices, no software installation required; Reliably stores photos, videos & files
  • Compact: Features a push-button retractor and a lanyard loop for on-the-go use
  • Enhanced security: Lexar DataShield protects files, easily creates a password-protected safe with auto-encryption; Files deleted from the safe are securely erased and can't be recovered
wsl --list --verbose
wsl --unregister <DistroName>

Do not run the unregister command unless you are certain the distribution and its files can be deleted.

3. Uninstall Linux distribution apps

Open Settings → Apps → Installed apps. Search for installed distributions such as Ubuntu, Debian, Kali Linux, openSUSE, or Fedora Remix. Select the three-dot menu beside each relevant app and choose Uninstall.

Unregistering deletes the registered Linux filesystem; uninstalling the app removes the Windows application package. Depending on how the distribution was installed, you may need to perform both actions.

4. Uninstall the WSL application, if present

In Settings → Apps → Installed apps, search for:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  • Windows Subsystem for Linux
  • Windows Subsystem for Linux Preview
  • Other WSL entries installed on your system

Choose Uninstall where Windows provides that option. The exact package name varies by Windows 11 build and whether WSL came from the Microsoft Store, an updated package, or the older in-box Windows component model.

As an advanced fallback, you can use PowerShell:

Get-AppxPackage *WindowsSubsystemForLinux* | Remove-AppxPackage

Use Settings first. Package names and installation models can change, and the PowerShell command may not remove every Windows feature associated with WSL.

5. Disable the WSL Windows feature

Press Windows key + R, enter optionalfeatures, and press Enter. In the Windows Features dialog, clear:

  • Windows Subsystem for Linux
  • Virtual Machine Platform, only if no other software needs it

Select OK and restart when prompted.

Disabling Virtual Machine Platform can affect Docker Desktop, Windows Sandbox, Android emulators, and other virtualization software. Leave it enabled if another application depends on it.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

6. Disable the features with DISM instead

Administrators can use an elevated PowerShell or Windows Terminal window:

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

dism.exe /online /disable-feature /featurename:VirtualMachinePlatform /norestart

The second command is optional. DISM changes require administrator privileges.

7. Restart Windows

If Windows does not restart automatically, run:

shutdown /r /t 0

Verify that WSL has been removed

After Windows restarts, open PowerShell and run:

wsl --status
wsl --list --verbose

Depending on your Windows 11 build and installation method, WSL may report that it is not installed, that required components are missing, or that no distributions are installed. The exact message is not identical on every system.

Rank #3
Rpanle Tech-Shop-pro USB for Windows 11 Install Recover Repair Restore Boot USB Flash Drive, 64 Bit Systems Home&Professional, Antivirus Protection&Drivers Software, Fix PC, Laptop and Desktop
  • Does Not Fix Hardware Issues - Please Test Your PC hardware to be sure everything passes before buying this USB Windows 11 Software Recovery USB.
  • Make sure your PC is set to the default UEFI Boot mode, in your BIOS Setup menu. Most all PC made after 2013 come with UEFI set up and enabled by Default
  • Does Not Include A KEY CODE, LICENSE OR A COA. Use your Windows KEY to preform the REINSTALLATION option
  • Free tech support

If distributions still appear, they remain registered. Run wsl --shutdown, unregister them by their exact names, and restart again.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

What may remain after uninstalling WSL?

Removing WSL does not guarantee that every manually created file disappears. Check for files you recognize, including:

  • Exported .tar backups
  • Manually imported distribution folders
  • Custom VHDX files
  • Project files stored under your Windows profile
  • Docker-related data
  • Old kernel installers
  • Windows Terminal profiles
  • VS Code WSL extensions and settings

Delete only folders you can identify. Do not blindly remove every folder containing “WSL” from AppData, Program Files, or the Windows directory.

Troubleshooting

The distribution still appears after uninstalling its app

Removing the Windows app does not always remove a registered distribution. Restart Windows, open PowerShell, and run:

wsl --list --verbose
wsl --unregister <DistroName>

wsl --unregister fails

First stop WSL with wsl --shutdown and retry. Close terminals, editors, file browsers, Docker, and other programs that may be accessing the distribution. If the command reports that WSL is unavailable, remove the distro app through Settings → Apps → Installed apps, then disable the WSL feature through Windows Features or DISM.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

WSL is not listed in Installed apps

This can occur with older in-box installations. Use optionalfeatures to clear Windows Subsystem for Linux, then restart. Do not assume that the absence of an Installed apps entry means all WSL components have been removed.

Virtual Machine Platform is needed by another program

Leave Virtual Machine Platform enabled and disable only the WSL feature. This removes WSL while preserving the virtualization component used by compatible applications.

A stale WSL shortcut remains in Start

A Start menu entry can be a leftover shortcut or app registration rather than an active WSL installation. Restart Windows, check Installed apps, and verify with wsl --status and wsl --list --verbose. Avoid deleting unrelated system folders to remove a shortcut.

A distribution was deleted accidentally

An unregistered distribution can generally be recovered only from an export archive or another backup. Without one, wsl --unregister is not a reversible operation.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Reinstall WSL later

On supported Windows installations, you can reinstall WSL from an elevated PowerShell or Windows Terminal window with:

wsl --install

Microsoft’s WSL installation documentation describes the current installation requirements and behavior.

Quick Recap

Bestseller No. 1
Password Reset Disk for Windows 7, 8.1, 10, 11, Windows Password Recovery USB, Password Reset Tool
Password Reset Disk for Windows 7, 8.1, 10, 11, Windows Password Recovery USB, Password Reset Tool
FOR FULL INSTRUCTION PLEASE READ DESCRIPTION; After that its will take few minutes to reset Windows login password
Bestseller No. 2
Lexar A30E USB 3.2 Gen 1 Flash Drive 128GB 2-Pack
Lexar A30E USB 3.2 Gen 1 Flash Drive 128GB 2-Pack
Compact: Features a push-button retractor and a lanyard loop for on-the-go use
$39.99

Useful Microsoft documentation

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.