We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
Keith K.6
11 years agoNew member | Level 1
Batch deletion?
Hello all, looking through the current Core API docs, I find no way to batch-delete a set of files, other than to delete a whole folder.
This is causing performance issues with the application I'm working on. I started with Google Drive support, and they have a generic mechanism for batching API requests (putting requests themselves as multipart mime sections of a single request to a batch request endpoint)... I was wondering if Dropbox has an undocumented or v2 REST API endpoint for specifying a set of paths to delete...
Right now I have to walk through each file to delete, and make an HTTP request in-turn. This gets painfully expensive when there are 1000 or more files to remove.
I cannot just remove the whole folder, as some of the files in the folder may need to remain.
4 Replies
Replies have been turned off for this discussion
- Greg-DB11 years ago
Dropbox Community Moderator
Unfortunately, no, the Dropbox API doesn't currently offer any batch capability like this, but I'll be sure to pass this along as a request.
- STANLEY G.10 years agoNew member | Level 1
Holding down ctrl while clicking files or photos to delete would be wonderful
- Greg-DB10 years ago
Dropbox Community Moderator
Hi Stanley, this thread was about functionality in the programming interface for Dropbox. Feedback for the Dropbox product itself like yours would be better suited in the Product feedback forum:
- Greg-DB10 years ago
Dropbox Community Moderator
Quick update: the API does now have support for batch deletes:
https://www.dropbox.com/developers/documentation/http/documentation#files-delete_batch
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!