: %UserProfile%\.wslconfig
Before you delete anything, remember that uninstalling a distribution will stored within that Linux environment. If you have important code or configurations, export your distribution first: Open PowerShell. Run: wsl --export C:\backup\distro_backup.tar Step 2: Uninstall Linux Distributions
To fully revert your system to its pre-WSL state, you need to turn off the optional Windows features that allow Linux to run. how to remove wsl
Go to > Apps > Installed Apps (or "Apps & Features" on Windows 10).
If you see "Windows Subsystem for Linux" or "WSL Update" in the list, them. Step 4: Disable WSL Windows Features : %UserProfile%\
(if not removed via unregister): C:\Users\<YourUsername>\AppData\Local\Packages\ – look for folders starting with CanonicalGroupLimited. or similar and delete them.
Type wsl --list to see a list of your installed distributions (e.g., Ubuntu, Debian). For each distro, run: wsl --unregister Example: wsl --unregister Ubuntu . Go to > Apps > Installed Apps (or
Restart your PC afterward.
Example: wsl --unregister Ubuntu
(Note: Only uncheck this if you don't use other virtual machines like BlueStacks or Hyper-V). Click OK . Restart your computer to apply the changes. Step 5: Clean Up Residual Files (The Pro Touch)