code: public void detachLocaleGroup(CmsResource firstPage, CmsResource secondPage) throws CmsException {
  
          CmsRelationFilter typeFilter = CmsRelationFilter.ALL.filterType(CmsRelationType.LOCALE_VARIANT);
          firstPage = getDefaultFileOrSelf(firstPage);
          secondPage = getDefaultFileOrSelf(secondPage);
          if ((firstPage == null) || (secondPage == null)) {
              return;
          }
  
          List<CmsRelation> relations = m_cms.readRelations(typeFilter.filterStructureId(secondPage.getStructureId()));
          CmsUUID firstId = firstPage.getStructureId();
          CmsUUID secondId = secondPage.getStructureId();
          for (CmsRelation relation : relations) {
              CmsUUID sourceId = relation.getSourceId();
              CmsUUID targetId = relation.getTargetId();
              CmsResource resourceToModify = null;
              if (sourceId.equals(firstId) && targetId.equals(secondId)) {
                  resourceToModify = firstPage;
              } else if (sourceId.equals(secondId) && targetId.equals(firstId)) {
                  resourceToModify = secondPage;
              }
              if (resourceToModify != null) {
                  CmsLockActionRecord record = CmsLockUtil.ensureLock(m_cms, resourceToModify);
                  try {
                      m_cms.deleteRelationsFromResource(resourceToModify, typeFilter);
                  } finally {
                      if (record.getChange() == LockChange.locked) {
                          m_cms.unlockResource(resourceToModify);
                      }
                  }
                  break;
              }
          }
      }
docs: Removes a locale group relation between two resources.<p>
  
  @param firstPage the first resource
  @param secondPage the second resource
  @throws CmsException if something goes wrong