code: def removeRow(self, row, parent):
          
          if parent.isValid():
              parentitem = parent.internalPointer()
          else:
              parentitem = self._root
          self.beginRemoveRows(parent, row, row)
          item = parentitem.childItems[row]
          item.set_model(None)
          item._parent = None
          del parentitem.childItems[row]
          self.endRemoveRows()
          return True
docs: Remove row from parent
  
          :param row: the row index
          :type row: int
          :param parent: the parent index
          :type parent: :class:`QtCore.QModelIndex`
          :returns: True if row is inserted; otherwise returns false.
          :rtype: bool
          :raises: None