def METHOD_NAME(self):
    selection_model = self._view.selectionModel()
    while True:
        indexes = selection_model.selectedIndexes()
        if not indexes:
            break
        self._model.removeRow(indexes[0].row())
    self._update_cfg()