Ramblings of a Coder's Mind

Got Tech? Will Hack.

Recursively delete files from a folder in Windows

This is something one might need to do regularly. I need to because wget often creates multiple [email protected]* files despite being set up not to (my GUI for wget might forget configs.. who knows?)

I’m left with a couple of hundred folders with 6 html files each which to me is quite irritating. So here’s a simple command to delete files in Windows recursively.

del /S [email protected]*

**Change the “[email protected]*” part to anything else you might want. Obviously, wild cards are valid. Have fun and be careful! :)

Created: 26th July 2011
Category: Tutorials
Tags: Script, Windows, batch, delete, tips