Remove Wsl From Windows 11 Jun 2026

Before removing the underlying subsystem, you must remove any installed Linux distributions (like Ubuntu, Debian, or Kali Linux). If you skip this step, the distro files may remain on your drive, taking up space.

To begin, one must address the installed distributions. From an elevated PowerShell or Windows Terminal window, the command wsl --list --verbose reveals all installed distributions along with their current state (e.g., "Running" or "Stopped"). Each distribution must be terminated with wsl --terminate <DistroName> before removal. The command wsl --unregister <DistroName> then performs the irreversible action of deleting the distribution’s ext4 virtual hard disk file (usually stored within the user’s %LOCALAPPDATA%\Packages\ directory) and removing its entry from the Windows bootloader menu. This step is crucial; skipping it leaves behind gigabytes of orphaned data. For users who have installed distributions via the Microsoft Store, unregistering them is sufficient, though the Store listing itself will still show "Installed" until explicitly removed via the Store’s library interface. remove wsl from windows 11

WSL uses virtual hard disk (VHDX) files to store Linux data. Sometimes, these files linger even after uninstallation. Additionally, if you want to wipe all traces of your Linux sessions, you should delete the associated folders. Before removing the underlying subsystem, you must remove

If you removed WSL for troubleshooting purposes and plan to reinstall it, the process is now much cleaner. Simply open an elevated PowerShell window and run: From an elevated PowerShell or Windows Terminal window,

Previous
Previous

How Meta Uses Your Data for AI Training and How You Can Opt Out

Next
Next

Whelp! I Lost A Hard Drive Full of Photos!!