Recursively Delete Selected Files or Folders In Windows

//Recursively Delete Selected Files or Folders In Windows

Recursively Delete Selected Files or Folders In Windows

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:

By |2008-02-07T14:23:55+00:00February 12th, 2008|Miscellaneous|3 Comments

About the Author:

Alvin Poh lives in Singapore, and is interested in marketing, techy stuff, and likes to just figure out how the two can work with each other. He can also be found on Google+.


  1. J October 9, 2008 at 2:33 pm - Reply

    Thanks, I am not sure why I did not think of that myself.

  2. Frank October 18, 2008 at 11:48 am - Reply

    Haha, why didn’t I think of that? Thank you!

  3. Alvin October 18, 2008 at 11:54 am - Reply

    no problems guys 🙂

Leave A Comment