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.
# Disable WSL Disable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux Disable-WindowsOptionalFeature -Online -FeatureName VirtualMachinePlatform uninstall wsl
To back up a distribution:
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