Forum Discussion
How do I delete empty files created by Linux in the Windows 11 operating system?
To remove the Linux icon from Windows Explorer in Windows 11, which typically appears due to WSL (Windows Subsystem for Linux) or a Linux emulator, follow these steps:
Step-by-Step Cleanup Guide
1. Unregister WSL Distributions
Open PowerShell as Administrator and run:
wsl --list
This shows all installed Linux distributions. Then, for each one you want to remove:
wsl --unregister <DistroName>
Replace <DistroName> with the actual name (e.g., Ubuntu, Debian, etc.).
2. Uninstall WSL Feature (Optional)
If you no longer need WSL at all:
Open Settings > Apps > Optional Features.
Scroll to Windows Subsystem for Linux.
Click Uninstall.
3. Remove Linux Emulators
Go to:
Settings > Apps > Installed Apps
Uninstall any third-party Linux emulators (e.g., Cygwin, Git Bash for linux, etc.).
4. Clean Up Residual Files
Check and delete leftover folders:
C:\Users\<YourUsername>\AppData\Local\Packages
Look for folders starting with CanonicalGroupLimited... or similar.
and Remove those
5. Restart Your PC
This ensures the Linux icon disappears from File Explorer.
Warning:
You will lose all your data stored in your Linux installation of WSL or installed Emulator App.
So please be sure of what you are removing.