wsl --list --verbose or simply:
wsl --unregister <DistributionName> Example:
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. uninstall wsl
Open regedit as Administrator and navigate to:
To back up a distribution:
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:
Windows Subsystem for Linux (WSL) is a powerful tool that allows you to run a GNU/Linux environment directly on Windows. However, you may eventually need to remove it—whether to free up disk space, fix a corrupted installation, or simply because you no longer use it. If you have any important files, scripts, or
# Disable WSL Disable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux Disable-WindowsOptionalFeature -Online -FeatureName VirtualMachinePlatform
wsl --list --verbose or simply:
wsl --unregister <DistributionName> Example:
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.
Open regedit as Administrator and navigate to:
To back up a distribution:
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:
Windows Subsystem for Linux (WSL) is a powerful tool that allows you to run a GNU/Linux environment directly on Windows. However, you may eventually need to remove it—whether to free up disk space, fix a corrupted installation, or simply because you no longer use it.
# Disable WSL Disable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux Disable-WindowsOptionalFeature -Online -FeatureName VirtualMachinePlatform