code: public static void removeParmEditDirective(String targetId, String name, IPerson person)
              throws PortalException {
          Document plf = (Document) person.getAttribute(Constants.PLF);
          Element parmSet = getParmEditSet(plf, person, false);
  
          if (parmSet == null) return; // no set so no edit to remove
  
          NodeList edits = parmSet.getChildNodes();
  
          for (int i = 0; i < edits.getLength(); i++) {
              Element edit = (Element) edits.item(i);
              if (edit.getAttribute(Constants.ATT_TARGET).equals(targetId)
                      && edit.getAttribute(Constants.ATT_NAME).equals(name)) {
                  parmSet.removeChild(edit);
                  break;
              }
          }
          if (parmSet.getChildNodes().getLength() == 0) // no more edits, remove
          {
              Node parent = parmSet.getParentNode();
              parent.removeChild(parmSet);
          }
      }
docs: Remove a parameter edit directive from the parameter edits set for applying user specified
  values to a named parameter of an incorporated channel represented by the passed-in target
  id. If one doesn't exists for that node and that name then this call returns without any
  effects.