docs: protected void remove(CmsPublishJobInfoBean publishJob) throws CmsException {
  
          OpenCms.getMemoryMonitor().uncachePublishJobInHistory(publishJob);
          // delete job from db if necessary
          if (OpenCms.getMemoryMonitor().requiresPersistency()) {
              CmsDbContext dbc = m_publishEngine.getDbContext(null);
              try {
                  OpenCms.getPublishManager().getEngine().getDriverManager().deletePublishJob(
                      dbc,
                      publishJob.getPublishHistoryId());
              } catch (CmsException e) {
                  dbc.rollback();
                  LOG.error(e.getLocalizedMessage(), e);
                  throw e;
              } finally {
                  dbc.clear();
              }
          }
  
          m_publishEngine.publishJobRemoved(publishJob);
      }