Efficiently purging lists of directories from Box

Hi

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
etc...

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....

  1. 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
  2. Issue the DELETE asynchronously so I can start on the next operation with the same client

Thanks,

-Joel

I just found the answer to my own question....

rclone rc operations/purge _async=true fs=remote: remote=/a/b/c/d/e/f/g/parent1/0001

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.