code: private void deleteExportpoint(CmsModule module, String exportpoint) {
  
          List oldExportpoints = module.getExportPoints();
          List newExportpoints = new ArrayList();
          Iterator i = oldExportpoints.iterator();
          while (i.hasNext()) {
              CmsExportPoint exp = (CmsExportPoint)i.next();
              if (!exp.getUri().equals(exportpoint)) {
                  newExportpoints.add(exp);
              }
          }
          module.setExportPoints(newExportpoints);
          // update the module information
          try {
              OpenCms.getModuleManager().updateModule(getCms(), module);
          } catch (CmsConfigurationException ce) {
              // should never happen
              throw new CmsRuntimeException(
                  Messages.get().container(Messages.ERR_ACTION_EXPORTPOINTS_DELETE_2, exportpoint, module.getName()),
                  ce);
  
          } catch (CmsRoleViolationException re) {
              throw new CmsRuntimeException(
                  Messages.get().container(Messages.ERR_ACTION_EXPORTPOINTS_DELETE_2, exportpoint, module.getName()),
                  re);
          }
      }
docs: Deletes a module exportpoint from a module.<p>
  
  @param module the module to delete the dependency from
  @param exportpoint the name of the exportpoint to delete