code: def remove_all(self):
          '''Remove all :attr:`children`.'''
          if self._children:
              for child in self._children:
                  if isinstance(child, String):
                      child._parent = None
              self._children = [f remove_all(self):
          '''Remove all :attr:`children`.'''
          if self._children:
              for child in self._children:
                  if isinstance(child, String):
                      child._parent = None
              self._children = []
docs: Remove all :attr:`children`.