def delete_row(self, user, external_id):
        """
        Delete a row in this dataset.
        """
        self.lock()

        try:
            solr.delete(settings.SOLR_DATA_CORE, 'dataset_slug:%s AND external_id:%s' % (self.slug, external_id), commit=True)
        
            self.row_count = self._count_rows()
            self.last_modified = now()
            self.last_modified_by = user
            self.last_modification = _('1 row deleted')
            self.save()
        finally:
            self.unlock()
dataset/ETHPy150Open pandaproject/panda/panda/models/dataset.py/Dataset.delete_row/original