Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
I was using the delete API call to remove a folder that contained more than 10k files when I saw the too_many_files error. I switched over to the delete_batch API call in order to bypass this error, but received the same error at 10,001 files. I decided to send smaller chunks, but when trying to use delete_batch with more than 3425 files, I consistently get an internal error reported. When I reduced the number of files to be sent to the delete_batch API call to 3422, I was successful in deleting 3422 files the first go around, then received the internal error for any subsequent calls to delete_batch. I'm having a hard time writing reliable code to this endpoint without fully understanding it's limits and don't want to resort to deleting files one at a time since this will take much longer. This code was being used for performance testing and the issue first documented when deleting a folder with 100k files.
Hi, here's a job ID to look into: dbjid:AABmns5UvrGc8_P9u_aHxWgCafbeZL1ejUfh1LaMShLO2s-gLpFA8wKeNJ_CtWUufwrTWwQ6d1m4ylYsIOvR5Mq6
This is the result I received:
{
"error_summary": "internal_error/..",
"error": {
".tag": "internal_error"
}
}
However, the jobID below, returned nothing:
dbjid:AABvdNk9LAAlE1U8IZVO2Ak3vawOviEm72PYHhVaDzQKPdV5t-Clc26PwhDLTr3EHGbAFVTqplZprCcMm9KsWs7A
These jobs never removed the files. I've been running additional testing using the same directory and adding and removing files. I assumed the job ID was being used to look at logs, etc. Sorry I didn't leave the directory in tact for troubleshooting. My code is setup to retry whenever I hit those errors, but the errors are fairly frequent and I rairly received a success when I sent 7000+ files at a time. I received the most consistent results around 3000 or 4000 files per request.
Hi there!
If you need more help you can view your support options (expected response time for a ticket is 24 hours), or contact us on X or Facebook.
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!