HI,
we have global task and execution listener added to the process engine as part of plugin to capture events. I am assuming deleting process instance( calling /process-instance/delete) would internally delete task and hence should have fired task listener on delete event but I dint see task delete being invoked when /process-instance/delete is triggered.
is camunda internally deleting task/process and all data associated in single query during process instance deletion and not triggering any listeners.
However when process is terminated explicitly through error boundary event on user task the task delete listener was invoked.