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
mudunuru
6 years agoNew member | Level 2
Get metadata of a deleted file
Below is the scenario we need to acheive. Whenever a file is deleted from the dropbox the same should be removed from our database as well. In our database we are storing the id of the file rather...
- 6 years ago
The Dropbox API doesn't return the file/folder ID for DeletedMetadata, but I'll pass this along as a feature request.
You can call /2/files/list_revisions with the path from the DeletedMetadata to get the history of the file at that though, including the file ID(s).Alternatively, you can store the path and id for the each last (File|Folder)Metadata you saw, so that when you get a DeletedMetadata, you can check what the last known file ID was for that path.
Greg-DB
6 years agoDropbox Staff
The Dropbox API doesn't return the file/folder ID for DeletedMetadata, but I'll pass this along as a feature request.
You can call /2/files/list_revisions with the path from the DeletedMetadata to get the history of the file at that though, including the file ID(s).
Alternatively, you can store the path and id for the each last (File|Folder)Metadata you saw, so that when you get a DeletedMetadata, you can check what the last known file ID was for that path.
- mudunuru6 years agoNew member | Level 2
Hi Greg,
Thank you for quick turnaround. As you suggested storing the path in DB and using the same for doing the deletion should do since the file_id changes every time we change the revision, rename the file or move the file.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,915 PostsLatest Activity: 6 hours agoIf 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!