code: protected void cleanupProjectIfEmpty(CmsProject project) throws CmsException {
  
          if ((project.getType().getMode() == CmsProject.PROJECT_TYPE_WORKFLOW.getMode()) && isProjectEmpty(project)) {
              LOG.info("Removing project " + project.getName() + " because it is an empty workflow project.");
              m_adminCms.deleteProject(project.getUuid());
          }
      }
docs: Removes a project if there are no longer any resources which have been last modified in that project.<p>
  
  @param project the project
  @throws CmsException if something goes wrong