Purge Files Older...
Definitely remove files that were not modified since a given period.
This Flow automates the task of purging old files to maintain storage size under control. It can either "Delete" old files directly, or simply tag them so that user is informed that they are to be removed soon.
How It Works¶
The Flow works as described below:
- Every days at 9PM,
- List all files inside RootFolder that are older than XX days. This uses the specific modification date search criteria that takes values similar to ">3d" or "<1h".
- Double check that file is not a .pydio hidden file (internal stuff)
- Use a Conditional Filter checking for the job parameter to decide wether to definitely delete files, or to add a preset metadata.
When using the metadata feature (instead of real deletion), another job can be setup to crawl tagged files for actual deletion.
Parameters¶
Name | Type | Default | Mandatory | Description |
---|---|---|---|---|
RootFolder | text | pydiods1 | false | Root path where to look for files to purge. |
FilesOlderThan | integer | 30 | false | (days) Look for files older than XX days |
Action | select, possible values: Mark for deletion (tag), Delete (delete) | tag | false | Either mark for deletion with a tag, or permanently delete file. |
MarkTagValue | text | to-be-deleted | false | If Action is "Mark for deletion", value of the tag to set. |
Trigger Type¶
Scheduled
JSON Representation¶
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 |
|