Purge Files Older Than X Days From a Folder

Run through the contents of a folder and all subfolders, and check the modified date of the files

This task will run through the contents of a folder and all subfolders, and check the modified date of the files. It will then generate a list of the files older than 3 days (you can customize this timeframe). The list is then used to purge the correct files from the folder and all subfolders. It was important for me to use the modified date, as the created date would be bad in my situation. You can customize the timeframe, and any other aspects of the task. Make note to go through and enter your specific information into the task and basic scripts, such as admin username, and password. You will also need to enter the IP of the remote server or machine you wish to use this task on. It should be clear as to what needs your modification by reading through the steps. You will also need update the mail server settings and SMTP address of the recipient address for the notifications I have setup through SMTP. Hope this comes in handy for someone.

Task Category:

Workflow