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