Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
I am trying to use the Node.js to query a dropbox folder from the back-end of my website, which is hosted on Wix. This folder may have thousands of files, and I want a daily routine on my website to run and delete files older than "X" days (ex: 30 days) from this folder.
In reviewing the APIs there does not seem to be a way to do this, other than to use the filesListFolder() API, then loop through the results and check the metadata of each individual entry to review the date and see whether or not it's created date property is later than the designated time. For example, while this works:
Unfortunately, the Dropbox API doesn't offer a way to list/filter files only since a specific date, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though.
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!