|Hi...I have used this in the past as it worked for me. I have it delete files 30 days or older from a folder I have. You should test it first before trying it on the real folder. Change the "Z:\YOURDIRECTORY" to point to your Drive and Folder Directory. Change the number 7 below after the "-" to customize your date preference. Hope this helps!|
forfiles /p Z:\YOURDIRECTORY /d -7 /c "cmd /c del @file"