Uninstall Wsl Updated < Trusted × 2027 >
Uninstalling WSL is not a single click. It involves removing the Linux distributions, the WSL components themselves, and cleaning up leftover files and registry entries. This guide provides a complete, safe method to remove everything WSL-related. If you have any important files, scripts, or configuration data inside your Linux distribution(s), back them up now . Uninstalling will permanently delete all Linux files, home directories, and installed packages.
List your installed distributions:
wsl --export <DistributionName> <Filename>.tar # Example: wsl --export Ubuntu-22.04 ubuntu_backup.tar You can later re-import it with wsl --import . First, open PowerShell or Windows Terminal as Administrator (right-click Start > "Windows Terminal (Admin)" or "PowerShell (Admin)"). uninstall wsl
For most users, stopping at (unregistering distros and disabling features) is sufficient. Steps 4–6 are for those who want a deep clean or are troubleshooting severe issues. Last updated: 2025 Uninstalling WSL is not a single click
wsl --unregister <DistributionName> Example: If you have any important files, scripts, or
wsl --shutdown This forcefully shuts down the WSL 2 lightweight VM and all related processes. WSL consists of two Windows features: Windows Subsystem for Linux and Virtual Machine Platform (required for WSL 2). You can remove them via PowerShell or the Windows GUI. Option A: Remove via PowerShell (Recommended) Run the following commands as Administrator: