public static void deleteNode(Document doc, XmlEntity xmlEntity) throws Exception {
    NodeList nodes = getNodes(doc, xmlEntity);
    if (nodes != null) {
      int length = nodes.getLength();

      for (int i = 0; i < length; i++) {
        Node node = nodes.item(i);
        node.getParentNode().removeChild(node);
      }
    }
  }
**
Deletes all the node from the document which match the definition provided by xmlEntity
geode-core/src/main/java/org/apache/geode/management/internal/configuration/utils/XmlUtils.java