Forum Discussion

sagar_lonkar's avatar
sagar_lonkar
Explorer | Level 4
2 years ago

Unable to get event for child files deletion when parent folder is deleted

If we delete parent folder which holds multiple files inside in it , then events API with file_operation category only return single event for folder deletion with file count.


{"timestamp":"2023-12-22T03:05:03Z","event_category":"file_operations","event_type":{".tag":"file_delete","description":"Deleted files and/or folders"},"details":{".tag":"file_delete_details"},"actor":{".tag":"admin","admin":{".tag":"team_member","account_id":"dbid:AABRlh1amqAhSGWfbMmPHfpxTfJuDq04BKQ","display_name":"Sagar Lonkar","email":"sagar_lonkar@persistent.com","team_member_id":"dbmid:AADB70OYWpu61Z-YJSrAwi-JWWGYvWEFNi4"}},"origin":{"access_method":{".tag":"end_user","end_user":{".tag":"web","session_id":"dbwsid:5249716739093449551150356798471692461"}},"geo_location":{"ip_address":"165.225.120.222","city":"Mumbai","region":"Maharashtra","country":"IN"}},"involve_non_team_member":false,"context":{".tag":"team_member",".tag":"team_member","account_id":"dbid:AABRlh1amqAhSGWfbMmPHfpxTfJuDq04BKQ","display_name":"Sagar Lonkar","email":"sagar_lonkar@persistent.com","team_member_id":"dbmid:AADB70OYWpu61Z-YJSrAwi-JWWGYvWEFNi4"},"participants":[],"assets":[{".tag":"folder","path":{"namespace_relative":{"ns_id":"2137930131","relative_path":"/test2_1","is_shared_namespace":true},"contextual":"/Sagar Lonkar/test2/test2_1"},"display_name":"test2_1","file_id":"id:rh3FNKfojiAAAAAAAAAAOg","file_size":11919,"file_count":2}]}

Is there way to get  deleted files information with parent folder deletion ?

 

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

    The Dropbox API does not offer an option for controlling that kind of reporting behavior. On Dropbox, the deletion of a parent implies the deletion of all of the children of that parent.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,950 PostsLatest Activity: 8 hours ago
351 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!