Find who/when a content item was deleted?

A content item was deleted from its modelā€™s collection. Only a couple of us have access to the UI, and neither of us deleted it. Is there a way to find history of the collection (as opposed to history of an individual content item) or some other way to figure out how this happened?

Thankfully itā€™s in our development environment, so nothing is broken. But the item should be there. Weā€™d like to figure out what happened.

Thanks.

Hey @donnie.hale,

Iā€™m really sorry to hear that :frowning: Could it have been an accidental deletion via API, perhapsā€¦?

Unfortunately, audit logs are an enterprise-only feature (and arenā€™t retrospective in any case, so wouldnā€™t help you here even if you enabled it now). I am not sure if we have any other API logs that could help in this case, but could you please PM me or email support@datocms.com with some details so I can ask the devs to look for it? (i.e. which model, record ID/URL, etc. do you think vanished, the timeframe within which it disappeared, etc.)

We have not heard of any other incidents of this happening from our other customers.

Also, if you want to try to create your own audit log, we do have ā€œon record delete/updateā€ webhooks that you can use to send events to some external logging system.

Sorry about that!