One month down in 2025: How are your resolutions coming along? Check out how to get back on track here.
Forum Discussion
Sandar_
6 years agoExplorer | Level 3
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
Dropbox 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
Make connections with other developers804 PostsLatest Activity: 4 days ago
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!