Searches through a folder and deletes any files that were last modified more than the number of days you specify with fileAgeDays, and any empty folders, regardless of age.
To delete remote files, use a No Op task and configure a filter to download only files older than n days. (For an example, see Configuring Tasks - Processes/Scripts - Built-In - No Op.
Parameters used by this script:
folderPath
directory. This log file records each file considered and whether it was deleted. Default is false.MinSize
parameter. Any files smaller than the minimum are ignored.[Parm:OrigNames]
)zip.exe
or copy
. (Note: The functions of this script are also available in the built-in Command Line App script.)