docs: public int deleteDurableFromRemote(String subName)
      {
          if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
              SibTr.entry(tc, "deleteDurableFromRemote", subName);
  
          int status = DurableConstants.STATUS_OK;
  
          synchronized (_consumerDispatchersDurable)
          {
              // Do we have a consumer dispatcher for this subscription?
              ConsumerDispatcher current =
                              (ConsumerDispatcher) _consumerDispatchersDurable.get(subName);
  
              if (current == null)
                  // Nope.  Either it never existed or we've already deleted it.
                  status = DurableConstants.STATUS_SUB_NOT_FOUND;
              else
              {
                  // Yup, see if we can delete it.  If yes, then do so.
                  // Otherwise send back a cardinality error.
                  int count = current.getConsumerCount();
                  if (count == 0)
                  {
                      // First remove the consumer dispatcher
                      try
                      {
                          // Firstly complete the batch on the pubsub inputhandler
                          ((PubSubInputHandler) _baseDestinationHandler.getInputHandler())
                                          .forceTargetBatchCompletion(
                                          null);
                          deleteLocalDurableSubscription(subName);
                      } catch (SIMPDestinationLockedException e)
                      {
                          // No FFDC code needed
                          if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
                              SibTr.debug(tc, "Durable subscription locked");
  
                          if (e.getType()
                          == SIMPDestinationLockedException.CONSUMERS_ATTACHED)
                              status = DurableConstants.STATUS_SUB_CARDINALITY_ERROR;
                          else
                              status = DurableConstants.STATUS_SIB_LOCKED_ERROR;
                      } catch (SIDurableSubscriptionNotFoundException e)
                      {
                          // No FFDC code needed
                          if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
                              SibTr.debug(tc, "Durable subscription not found");
  
                          status = DurableConstants.STATUS_SUB_NOT_FOUND;
                      } catch (SIResourceException e)
                      {
                          // No FFDC code needed
  
                          if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
                              SibTr.debug(tc, "Durable subscription resource exception");
  
                          status = DurableConstants.STATUS_SUB_GENERAL_ERROR;
                      }
                  } else
                      // cardinality error
                      status = DurableConstants.STATUS_SUB_CARDINALITY_ERROR;
              }
          }
  
          if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
              SibTr.exit(tc, "deleteDurableFromRemote", new Integer(status));
  
          return status;
      }