write a batch file to delete files older than x 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"