code: private void removeAllChildren(CmsClientSitemapEntry entry) {
  
          for (CmsClientSitemapEntry child : entry.getSubEntries()) {
              removeAllChildren(child);
              m_entriesById.remove(child.getId());
              m_entriesByPath.remove(child.getSitePath());
              // apply to detailpage table
              CmsDetailPageTable detailPageTable = getData().getDetailPageTable();
              if (detailPageTable.contains(child.getId())) {
                  detailPageTable.remove(child.getId());
              }
          }
          entry.getSubEntries().clear();
      }
docs: Removes all children of the given entry recursively from the data model.<p>
  
  @param entry the entry