How to get Callback/EventListener when process definition is getting deleted (and when getting suspended/re-activated)

Dear Sir,

For Camunda 7, when deleting a process definition, I want to have a call back and the call back can have parsing capability similar to BpmnParseListener. How shall I achieve this use case?

Similar, when a process definition is suspended (and when activated again), I want a call back.

Hi @kerler
What if you create a custom command interceptor that listens for the DeleteProcessDefinitionsByIdsCmd or DeleteProcessDefinitionsByKeyCmd? Just thinking out loud.

Regards,
Alex