code: private static boolean applyDelete(Element delete, Document ilf) {
          String nodeID = delete.getAttribute(Constants.ATT_NAME);
  
          Element e = ilf.getElementById(nodeID);
  
          if (e == null) return false;
  
          String deleteAllowed = e.getAttribute(Constants.ATT_DELETE_ALLOWED);
          if (deleteAllowed.equals("false")) return false;
  
          Element p = (Element) e.getParentNode();
          e.setIdAttribute(Constants.ATT_ID, false);
          p.removeChild(e);
          return true;
      }
docs: Attempt to apply a single delete command and return true if it succeeds or false otherwise.
  If the delete is disallowed or the target element no longer exists in the document the delete
  command fails and returns false.