code: public void remove(ItemState item)
     {
        if (item.isNode())
        {
           remove(item.getData().getQPath());
        }
        else 
        {
           removeProperty(item, -1);
        }
     }
docs: Removes the property or node and all descendants from the log
  
  @param item
  item