The Windows Subsystem for Linux (WSL) is a powerful compatibility layer in Windows 11 that allows developers to run native Linux environments—including command-line tools, utilities, and graphical applications—directly on top of the Windows operating system without the overhead of a traditional virtual machine. It fundamentally bridges the gap between Windows and Linux development workflows.
However, WSL is an enterprise-grade virtualization feature that consumes significant system resources and expands the attack surface of your computer. If you have finished a development project, or if you purchased a used PC with WSL enabled and have no intention of using Linux, leaving it active is inefficient. It reserves memory, utilizes Hyper-V virtualization components, and introduces a secondary file system. To reclaim system resources and tighten security, you can completely disable the Windows Subsystem for Linux.
Why Disable the Windows Subsystem for Linux?
There are several practical reasons to remove WSL from a Windows 11 machine:
- Resource Reclamation: WSL2 utilizes a lightweight Hyper-V virtual machine that continuously reserves a block of system RAM (often several gigabytes) while running in the background.
- Security Hardening: Running a secondary Linux kernel introduces an entirely different ecosystem of potential vulnerabilities. Disabling it reduces the system’s overall attack surface.
- Storage Space: Linux distributions installed via WSL (such as Ubuntu or Debian) consume significant storage space on your C: drive, which can be reclaimed upon removal.
How to Turn Off ‘Windows Subsystem for Linux’ in Windows 11
Disabling WSL is a two-step process: you must first uninstall any Linux distributions you have downloaded, and then disable the underlying Windows feature at the OS level.
- First, remove your Linux distributions. Open the Settings app (press Windows Key + I).
- Click on Apps in the left sidebar, then select Installed apps.
- Search for the name of your Linux distribution (e.g., “Ubuntu”, “Debian”, “Kali”). Click the three dots next to it and select Uninstall. Repeat this for the “Windows Subsystem for Linux” update package if it appears in the list.
- Next, disable the core feature. Press the Windows Key, type
Turn Windows features on or off, and press Enter. - In the Windows Features dialogue box, scroll down to the bottom of the list.
- Uncheck the box next to Windows Subsystem for Linux.
- (Optional) If you are not using any other virtualization tools, you can also uncheck Virtual Machine Platform.
- Click OK. Windows will process the changes and prompt you to restart your computer.
After your PC reboots, the Windows Subsystem for Linux will be entirely stripped from the operating system, freeing up memory, CPU cycles, and storage space.