code: def throw_children_away(self, ):
          
          for c in self._children:
              c._parent = None
              self._treeitem.remove_child(c._treeitem)
          for c in self.get_all_children():
              self.get_root().remove_reftrack(c)
          self._children = []
docs: Get rid of the children :class:`Reftrack` by deleting them from root,
          and unparenting them. The content of the children will stay in the scene.
  
          You can wrap them again. It is a simple way to reset all children, e.g. after
          a replace. Because they might have changed completly.
  
          :returns: None
          :rtype: None
          :raises: None