Delete Zone.Identifier Files in WSL After Moving Files from Windows

TL;DR: To quickly delete all Zone.Identifier files in a WSL directory, run this command in your Linux shell:
find . -name "*:Zone.Identifier" -type f -deleteAs a software engineer working primarily on a Windows laptop, I often rely on WSL (Windows Subsystem for Linux) for development tasks.
Recently, I downloaded design assets from Figma and saved them in my Windows Downloads folder. After moving them into my WSL project directory, I noticed something odd. Extra files with :Zone.Identifier suffixes appeared alongside the actual files.
Here’s what I expected:
my-project/ ├── icon-1.svg └── icon-2.pngHere’s what I got instead:
my-project/ ├── icon-1.svg ├── icon-1.svg:Zone.Identifier ├── icon-2.png └── icon-2.png:Zone.IdentifierThese metadata files are automatically created by Windows to tag files downloaded from the internet. The data inside them is minimal, just a zone ID and sometimes a URL reference, but Windows uses them to decide whether to show a security warning when you open a file. They’re harmless on their own, but they can clutter your project directory or confuse tools that glob for files by extension. Git won’t track them as long as they stay untracked, but they’re still noise you don’t want sitting around.
If you’re seeing the same issue, follow these steps:
- Navigate to your WSL project directory where the files are located (or open a Linux shell there directly from your terminal)
- Run the following command, which will recursively find and delete all files ending in
:Zone.Identifier:
find . -name "*:Zone.Identifier" -type f -deleteRunning it again later won’t cause any problems. If there’s nothing to delete, it exits silently. Re-run it any time you paste a batch of files from Windows into a WSL project.

