List your installed distributions:
To back up a distribution:
# Disable WSL Disable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux Disable-WindowsOptionalFeature -Online -FeatureName VirtualMachinePlatform uninstall wsl
wsl -l -v For each distribution listed, unregister (remove) it: List your installed distributions: To back up a
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: some WSL processes may linger. Run: