batch script delete files older than 30 days code example
Example: batch script delete files older than 30 days
forfiles -p "C:\what\ever" -s -m *.* -d <number of days> -c "cmd /c del @path"
forfiles -p "C:\what\ever" -s -m *.* -d <number of days> -c "cmd /c del @path"