code: @Deprecated
      public ModelNode remove(ModelNode model) throws NoSuchElementException {
          final Iterator<PathElement> i = pathAddressList.iterator();
          while (i.hasNext()) {
              final PathElement element = i.next();
              if (i.hasNext()) {
                  model = model.require(element.getKey()).require(element.getValue());
              } else {
                  final ModelNode parent = model.require(element.getKey());
                  model = parent.remove(element.getValue()).clone();
              }
          }
          return model;
      }
docs: Navigate to, and remove, this address in the given model node.
  
  @param model the model node
  @return the submodel
  @throws NoSuchElementException if the model contains no such element
  
  @deprecated manipulating a deep DMR node tree via PathAddress is no longer how the management layer works
  internally, so this method has become legacy cruft. Management operation handlers would
  use {@link org.jboss.as.controller.OperationContext#removeResource(PathAddress)} to
  remove resources.