def METHOD_NAME(self, modelIndex):
    if modelIndex.row() in self.model.unremovable_rows:
        return
    if modelIndex.column() == self.model.ColumnID.Delete and not self.model.flags(modelIndex) == Qt.NoItemFlags:
        current_row = modelIndex.row()
        model = modelIndex.model()
        label_name = model.data(model.index(current_row, 1), Qt.DisplayRole)
        message = (
            f"You are about to delete label '{label_name}' along with all associated annotations!\nAre you sure?"
        )
        buttons = QMessageBox.Ok | QMessageBox.Cancel
        response = QMessageBox.warning(self, "Delete Label?", message, buttons)
        if response == QMessageBox.Cancel:
            return
        elif response == QMessageBox.Ok:
            self.model.removeRow(modelIndex.row())