Delete files older than 7 days in folder and its subfolder [duplicate]
forfiles -p "C:\what\ever" -s -m *.* /D -<number of days> /C "cmd /c del @path"
See here for usage.
forfiles -p "C:\what\ever" -s -m *.* /D -<number of days> /C "cmd /c del @path"
See here for usage.