
Move to Recycle Bin
All jobs in the 'Archive' folder will stay in this folder until more than 100 jobs are present or the total size of all jobs is more than 500 MB. The oldest jobs (i.e. the first ones that arrived in the Archive folder) will be deleted first.
This flow is compatible with: PowerSWITCH
Note: starting from update 5 this functionality has been standard included in LightSWITCH, FullSWITCH and PowerSWITCH.
Information

The Recycle Bin in this flow is a script element. When creating scripts you can add a custom icon; in this case the custom icon looks like a recycle bin.
The script allows you to delete files in an automated way depending on the following parameters:
- Maximum disk space (MB): the total disk space of all files present in the preceding folder can not be more than this value.
- Maximum job size (MB): any single job (file or job folder) bigger than this value is deleted.
- Maximum number of jobs: if the number of jobs exceeds this value the oldest jobs are deleted.
- Older than (days): all jobs older than a certain amount of days are deleted.
- Check age of files every (min): this property determines how long the script should wait before it checks again how old a job is (in minutes)
All properties can be combined; jobs are deleted as soon as one of the properties is satisfied. Use -1 as value if you want a certain property to be ignored.
In this specific example, the "Maximum disk size" and "Maximum number of files" are combined. If more than 100 jobs are present or the total of all jobs is more than 500 MB; the oldest jobs are deleted first.
Using this flow
- Download the flow and save it on your computer: download flow
- Launch one of the SWITCH products this flow is compatible with
- Use the “Flow > Import…” menu item
- In the dialog that is shown, select the flow file
The flow now appears in the flow list. You can now examine it or customize it to your needs.
