We Want to Hear From You! What Do You Want to See on the Community? Tell us here!
Forum Discussion
jjyy
5 years agoExplorer | Level 3
How to figure out which files have been deleted using the api?
I am working on a personal project that, when a file is deleted, will update a JSON file that stores whether or not a file has been deleted. The issue is I am having trouble figuring out how to get information on deleted files. Any help would be appreciated. Thank you!
1 Reply
- Greg-DB5 years ago
Dropbox Community Moderator
To see file deletions over time, you should use the /2/files/list_folder[/continue] endpoints (or corresponding native methods, if you're using an SDK). If you store the latest cursor you receive, and later call back to /2/files/list_folder/continue, the result will include DeletedMetadata entries for items that have been deleted, to be processed as described in the /2/files/list_folder documentation.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.6,036 PostsLatest Activity: 2 days ago
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 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!