{"id":679,"date":"2011-12-13T17:01:52","date_gmt":"2011-12-14T03:01:52","guid":{"rendered":"http:\/\/mymonkeydo.com\/?p=679"},"modified":"2011-12-13T17:01:52","modified_gmt":"2011-12-14T03:01:52","slug":"recursivley-delete-a-specific-file-in-windows","status":"publish","type":"post","link":"https:\/\/mymonkeydo.com\/recursivley-delete-a-specific-file-in-windows\/","title":{"rendered":"Recursivley delete a specific file in windows"},"content":{"rendered":"
I had WS_FTP.log in almost all my folders. I didn’t want them anymore so I needed a way to easily recursively delete the file from all my sub directories.<\/p>\n
Open the dos prompt (cmd). navigate to the directory that you want to remove the files in. Run the following command to get rid of any file ending in .tmp
\ndel \/s *.tmp<\/p>\n
Be careful with using this. It will delete all files that you specify under the directory you are located in.<\/p>\n