Skip to main content
Question

How to detect a File delete via search API

  • May 21, 2025
  • 3 replies
  • 18 views

Forum|alt.badge.img

If a file is deleted in BOX, will this be captured by the Search QUERY parameters “updated_at_range”.  If yes, can we retrieve the metadata of this particular file and which parameter in the metadata would signify the ‘deletion’ ?

 

How can the search API capture the deletion of documents as we would need to know when a document has been deleted on Box? 

3 replies

Forum|alt.badge.img

 You can get a list of deleted files in your Enterprise by querying the Enterprise Events endpoint and specifying ITEM_TRASH as the value for the event_type parameter.

 

 


Forum|alt.badge.img

Hi Murtza,

 

Thank you. We will try the enterprise events approach.


Forum|alt.badge.img

Hi Murtza,

 

One quick question. I see that "ITEM_TRASH" is part User Events. Will the below URL obtain the data?

 

https://api.box.com/2.0/events?stream_type=admin_logs&event_type=ITEM_TRASH