You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.

Forum Discussion

jak01's avatar
jak01
Explorer | Level 3
3 months 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?

 

    • jak01's avatar
      jak01
      Explorer | Level 3

      Thank you

      This looks promising

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff

    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.