I was looking around for a way to recursively delete files and folders of a specific name in Windows. For example, imagine having “/folderA/folderB/file1.doc” and “/folderA/folderC/file1.doc”, and I wanted to remove all instances of file1.doc. Now imagine this file1.doc being presented in hundreds of folders. Deleting each file manually would drive anyone crazy.
I know Unix has a more powerful commandline interface, so operations like this should be a snap, but I was certain Windows had a similar functionality too. So I went about searching for a simple solution to do so. I was so intent on finding a simple batch file or DOS command that would do the recursive delete that I didn’t think of anything else until it suddenly slammed into me like a bullet train.
I could just use the search function in Windows! Yes that’s right — the normal Windows search is already a powerful enough function that accepts wildcards and does recursive searching. So I went to Windows search, specified my folder, and put in my filename. Sure enough, all the hundred or more instances of that file popped up almost instantly. From there it was just a matter of selecting all of them and deleting them. Everything took less than 10 seconds!
Similar Posts:
- Recursively Delete Files and Retain Folders in Windows
- Recursively Download Folders using FTP with wget in UNIX (even SSH)
- Desktop Search Review: Google vs Yahoo X1 vs Copernic
- How To Find All Unread Mail in GMail
- How To Fix PDF Files Showing Up As A Blank Page in FireFox


October 9th, 2008 at 2:33 pm
Thanks, I am not sure why I did not think of that myself.
October 18th, 2008 at 11:48 am
Haha, why didn’t I think of that? Thank you!
October 18th, 2008 at 11:54 am
no problems guys