Empty All Recycles
Clear all workspaces recycle bin folders.
Usecase Overview¶
This Flow finds all "recycle bin" inside all workspaces, and empty their contents on a regular basis.
How It Works¶
"Recycle bins" are created as a sub-folder named "recycle_bin" of any folder tagged with the special recycle_root
ACL.
That way, when deleting any file or folder, Cells seeks for the first "recycle_root" in the parents and move the file/folder inside the corresponding Recycle Bin.
To find all recycle, this flow :
* Looks up for this recycle_root
ACL,
* Loads the corresponding node (ACL refer to nodes via their UUID
and we need to reload them to get their Path
),
* Compute the recycle path by appending recycle_bin to the path
* Finally calls the "Delete" action.
Default setup makes it run every day at 3AM, but it can also be ran manually.
Parameters¶
No parameters defined
Trigger Type¶
Scheduled