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 https://github.com/netlify/netlify-cms/issues/4088
TLDR: use preUnpublish event https://www.netlifycms.org/docs/beta-features/#registering-to-cms-events