cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Update: Find information on Dropbox support during COVID-19 here
Close

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted

Best Practices: Files Batch Deletion (delete_batch & delete_batch/check)

Explorer | Level 3

Hi there!

Just wondering what is the best practice to wait until batch operation (e.g. files batch deletion) is completed? Specifically, how often should I call /delete_batch/check endpoint (to know the progress or error/completion) in case I performing the operation from a backend? Since no time estimation provided for an operation (as far as I understand), should I check like just every 1s, 5s, 10s? Whether the check timeout better be incremental or constant?

And for the sake of completeness, how much such approach could be better comparing with sequential files deletion one by one? Do rate limits apply if make a lot of consequent requests that do not intersect? For example, my case is deleting about 100-200 files, each up to 5 MB.

Thanks!

1 Accepted Solution

Accepted Solutions
Highlighted

Re: Best Practices: Files Batch Deletion (delete_batch & delete_batch/check)

Dropboxer
Dropboxer

We don't have any official documentation on how long you should wait between checking on jobs like this. A few seconds, say 5s, seems reasonable. Whether to use a constant or variable period is also up to you.

We don't provide firm guidance on this because how long any particular job takes depends on a few factors, which can vary over time, and per job and account. You may want to try a few, see what is typical for your use case, and customize accordingly.

There is a rate limiting system, as well as some amount of locking involved, so we do recommend using the batch calls whenever possible.

View solution in original post

1 Reply 1
Highlighted

Re: Best Practices: Files Batch Deletion (delete_batch & delete_batch/check)

Dropboxer
Dropboxer

We don't have any official documentation on how long you should wait between checking on jobs like this. A few seconds, say 5s, seems reasonable. Whether to use a constant or variable period is also up to you.

We don't provide firm guidance on this because how long any particular job takes depends on a few factors, which can vary over time, and per job and account. You may want to try a few, see what is typical for your use case, and customize accordingly.

There is a rate limiting system, as well as some amount of locking involved, so we do recommend using the batch calls whenever possible.

View solution in original post

Polls
Do you know how to organize your files and folders?
We have created a guide on folder best practice, so you can get organized now check it out here.

Work Smarter with Dropbox

The way we work is changing. Share and discover new ways to work smarter with Dropbox in our community.

Sound good? Let's get started.
Who's talking

Top contributors to this post

What do Dropbox user levels mean?
Need more support?