code: def remove_item(self, item):
          
          index = self.items.index(item)
          self.beginRemoveRows(QtCore.QModelIndex(), index, index)
          self.items.remove(item)
          self.endRemoveRows()
docs: Remove item from model