# Disable WSL Disable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux Disable-WindowsOptionalFeature -Online -FeatureName VirtualMachinePlatform
wsl --shutdown This forcefully shuts down the WSL 2 lightweight VM and all related processes. WSL consists of two Windows features: Windows Subsystem for Linux and Virtual Machine Platform (required for WSL 2). You can remove them via PowerShell or the Windows GUI. Option A: Remove via PowerShell (Recommended) Run the following commands as Administrator: uninstall wsl
Open regedit as Administrator and navigate to: Example: List your installed distributions:
wsl --unregister <DistributionName> Example: uninstall wsl
List your installed distributions: