Run the following command (replacing with your actual distro name, like Ubuntu ): wsl --unregister
Optional – clean registry (careful!): Open regedit and search for WSL or Lxss . Delete keys under HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Lxss – but back up your registry first. wsl unistall
FAQ's about Windows Subsystem for Linux - WSL - Microsoft Learn Run the following command (replacing with your actual