Table of Contents
Uninstall WSL using Windows PowerShell
In some cases, you want to completely uninstall the WSL in Windows 10.
1. First, open Windows PowerShell Admin then get the list of installed distributions in your Windows.
PS C:\> wsl -l -v
NAME STATE VERSION
* Ubuntu Stopped 2
Debian Stopped 2
2. Remove the installed distributions using –unregister parameter.
PS C:\> wsl --unregister ubuntu
Unregistering...
PS C:\> wsl --unregister debian
Unregistering...
PS C:\>
3. After ran the unregister command, you can check the virtual hard disk is removed from this location:
C:\Users\<username>\AppData\Local\Packages<linux-distribution>LocalState
4. Open Windows Features.

5. Finally, remove Virtual Machine Platform and Windows Subsystem for Linux features from Windows Features then restart your computer.

Uninstall WSL using Windows Settings
Alternatively, you can remove the installed distributions from Apps and Features in Windows Settings.
1. Right click on the Windows start icon then select Apps and Features.

2. Under App & features, select the linux distribution that you want to remove then select Uninstall button.

3. Once done, remove Virtual Machine Platform and Windows Subsystem for Linux features from Windows Features to completely uninstall WSL in Windows 10.
