wsl --unregister <DistributionName> Example:
Open regedit as Administrator and navigate to: uninstall wsl
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. wsl --unregister <
wsl --list --verbose or simply:
List your installed distributions:
# Disable WSL Disable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux Disable-WindowsOptionalFeature -Online -FeatureName VirtualMachinePlatform fix a corrupted installation