code: protected void cleanupEmptyWorkflowProjects(List<CmsProject> projects) throws CmsException {
  
          if (projects == null) {
              projects = OpenCms.getOrgUnitManager().getAllManageableProjects(m_adminCms, "", true);
          }
          for (CmsProject project : projects) {
              if (project.isWorkflowProject()) {
                  if (isProjectEmpty(project)) {
                      m_adminCms.deleteProject(project.getUuid());
                  }
              }
          }
      }
docs: Cleans up empty workflow projects.<p>
  
  @param projects the workflow projects to clean up
  
  @throws CmsException if something goes wrong