Need to see if your shared folder is taking up space on your dropbox 👨‍💻? Find out how to check here.

Forum Discussion

jak01's avatar
jak01
Explorer | Level 3
2 years ago

Bulk Deleting of Files

I have read the suggestion of deleting smaller numbers of files when getting the "There are too many files in one request. Please retry with fewer files." message.

The issue is I have a couple of million files I want to delete.  Manually selecting individual files is not a reasonable option.  Is there a API that can be used to directly address the cloud storage?

 

3 Replies

  • jak01's avatar
    jak01
    Explorer | Level 3
    2 years ago

    Thank you

    This looks promising

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    2 years ago

    Yes, as Здравко said, Dropbox does offer an API that includes endpoints that can be used to delete files, such as /2/files/delete_v2, as well as /2/files/delete_batch which supports deleting multiple files at once.

     

    Also note that those are links to the documentation for the HTTPS endpoints themselves, but we recommend using one of the official SDKs if possible. The SDKs have corresponding native methods for the HTTPS endpoints.

About Discuss Dropbox Developer & API

Node avatar for Discuss Dropbox Developer & API
Make connections with 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!