Event for removing item from the CMS?

I self-hosted a comments and likes solution for my netlify-cms blog and I need to remove these likes and comments from my DB when a post gets removed.

I noticed there’s a callback for post unpublishing, and it seems this is the place where I should call my post removal endpoint.

Now, to the question: is this callback called only when an item/post is removed from the CMS? I don’t want this endpoint to be called on post editing or when the post editorial workflow changes, for example.

Linking my response to the GitHub issue Event callback for post removal? · Issue #4088 · netlify/netlify-cms · GitHub
TLDR: use preUnpublish event Beta Features! | Netlify CMS | Open-Source Content Management System