code: int removePartitionInfo(String hostName, String userDir, String libertyServerName, String executorIdentifier) throws Exception {
          PartitionRecord criteria = new PartitionRecord(false);
          if (hostName != null)
              criteria.setHostName(hostName);
          if (userDir != null)
              criteria.setUserDir(userDir);
          if (libertyServerName != null)
              criteria.setLibertyServer(libertyServerName);
          if (executorIdentifier != null)
              criteria.setExecutor(executorIdentifier);
  
          int numRemoved = 0;
          TransactionController tranController = new TransactionController();
          try {
              tranController.preInvoke();
              numRemoved = taskStore.remove(criteria);
          } catch (Throwable x) {
              tranController.setFailure(x);
          } finally {
              Exception x = tranController.postInvoke(Exception.class);
              if (x != null)
                  throw x;
          }
  
          return numRemoved;
      }
docs: Removes partition information from the persistent store. All of the parameters are optional.
  If a parameter is specified, only entries that match it are removed from the persistent store.
  
  This method is for the mbean only.
  
  @param hostName the host name.
  @param userDir wlp.user.dir
  @param libertyServerName name of the Liberty server.
  @param executorIdentifier config.displayId of the persistent executor.
  @return the number of entries removed from the persistent store.
  @throws Exception if an error occurs.