I'm trying to write a windows batch file that can delete files from subdirectories. I would rather not hard code the directory structure in, so I can use this process with other projects.
- I need to delete files of X type
- I have the parent folder C:\MyProject
- There are Y subfolders C:\MyProject\?
- There are N files to delete
Is there a quick del (of type) function I am simply missing?