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.
wsl --unregister Ubuntu-22.04 Repeat for every distribution. Once unregistered, all files, settings, and the Linux filesystem for that distro are permanently deleted. Even after unregistering, some WSL processes may linger. Run:
wsl --unregister <DistributionName> Example:
Open regedit as Administrator and navigate to:
wsl -l -v For each distribution listed, unregister (remove) it:
List your installed distributions:
# Disable WSL Disable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux Disable-WindowsOptionalFeature -Online -FeatureName VirtualMachinePlatform
Wsl | Uninstall
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.
wsl --unregister Ubuntu-22.04 Repeat for every distribution. Once unregistered, all files, settings, and the Linux filesystem for that distro are permanently deleted. Even after unregistering, some WSL processes may linger. Run: uninstall wsl
wsl --unregister <DistributionName> Example: Uninstalling WSL is not a single click
Open regedit as Administrator and navigate to: If you have any important files, scripts, or
wsl -l -v For each distribution listed, unregister (remove) it:
List your installed distributions:
# Disable WSL Disable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux Disable-WindowsOptionalFeature -Online -FeatureName VirtualMachinePlatform