Forum Discussion

Sandar_'s avatar
Sandar_
Explorer | Level 3
6 years ago

get files uploaded date with dropbox api

With dropbox api, I want to delete old uploaded files from dropbox by uploaded date filtering. Please give me suggestion, how can I do? 

 

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

    To delete files, you should use /2/files/delete_v2 or /2/files/delete_batch.

    Those require you to specify exactly which files to delete. To first find files any/all files with modified datetimes older than a certain date, you can use /2/files/list_folder[/continue]. Those allow you to list the metadata for all files and folders under a certain path. The returned metadata will include both client_modified and server_modified. Click through the "Metadata" documentation there for more information on the returned metadata fields.

    By the way, those are links to the documentation for the HTTPS endpoints themselves, but we recommend using one of the official SDKs if possible. Those have corresponding native methods for the HTTPS endpoints. 

About Discuss Dropbox Developer & API

Node avatar for Discuss Dropbox Developer & API
Make connections with other developers804 PostsLatest Activity: 4 days ago
217 Following

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 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!