IB
https://docs.camunda.org/javadoc/camunda-bpm-platform/7.15/org/camunda/bpm/engine/RuntimeService.html#deleteProcessInstance-java.lang.String-java.lang.String-
this way it removes all the processes which were called from this instance as well as the processes whose calls resulted in creation of this instance (which is absolutely logical, since their separate existence doesn't make any sense). But this is, once again, most likely a sign of a poor process design