docs: public void deleteSubscriptionsForProcessDefinition(String processDefinitionId) {
      List<EventSubscriptionEntity> eventSubscriptionsToRemove = new ArrayList<EventSubscriptionEntity>();
      // remove message event subscriptions:
      List<EventSubscriptionEntity> messageEventSubscriptions = getEventSubscriptionManager()
        .findEventSubscriptionsByConfiguration(EventType.MESSAGE.name(), processDefinitionId);
      eventSubscriptionsToRemove.addAll(messageEventSubscriptions);
  
      // remove signal event subscriptions:
      List<EventSubscriptionEntity> signalEventSubscriptions = getEventSubscriptionManager().findEventSubscriptionsByConfiguration(EventType.SIGNAL.name(), processDefinitionId);
      eventSubscriptionsToRemove.addAll(signalEventSubscriptions);
  
      // remove conditional event subscriptions:
      List<EventSubscriptionEntity> conditionalEventSubscriptions = getEventSubscriptionManager().findEventSubscriptionsByConfiguration(EventType.CONDITONAL.name(), processDefinitionId);
      eventSubscriptionsToRemove.addAll(conditionalEventSubscriptions);
  
      for (EventSubscriptionEntity eventSubscriptionEntity : eventSubscriptionsToRemove) {
        eventSubscriptionEntity.delete();
      }
    }