Delete Content of Scan Folder After X Days

Users scanning documents might neglect to delete files from the scan folder, causing potential server space problems.

Users scanning documents might neglect to delete files from the scan folder, causing potential server space problems. Applies to YSoft SafeQ 5 and  YSoft SafeQ 6.


Resolution:

Use this script in a schedule task (executed once a day) to delete all files from the specified directory. In our example home folder for scans is "C:\scan\folder" and all files older than 7 days are erased:

@echo off forfiles -p "C:\scan\folder" -s -m *.* -d -7 -c "cmd /c del @path"

It is recommended to update the notification to include the information that the job will be automatically deleted after 7 days.