I am using rclone with the box backend and trying to purge lists of directories (I need to do regular houskeeping to avoid box's 1PB limit)
Each directory is 9 levels deep and usually contain about 20 files totaling 600MB
So, I am issuing purge commands like....
rclone purge remote:/a/b/c/d/e/f/g/parent1/0001
rclone purge remote:/a/b/c/d/e/f/g/parent1/0002
rclone purge remote:/a/b/c/d/e/f/g/parent1/0003
I am NOT removing an additional directory from parent1, then I go on to parent2
rclone purge remote:/a/b/c/d/e/f/parent2//0001
What I find is that the process of descending the tree to get parent1's folder ID takes about 4 seconds each time and the DELETE itself takes about 8 seconds. The DELETE itself seems to actually move the file to trash on box's end rather than immediately killing it.
Is there a way to either....
- Specify a list of directories to purge on a single pure command so we don't have to descend down from the top for each command
- Issue the DELETE asynchronously so I can start on the next operation with the same client