def delete_all_rows(self, user,):
        """
        Delete all rows in this dataset.
        """
        self.lock()

        try:
            solr.delete(settings.SOLR_DATA_CORE, 'dataset_slug:%s' % self.slug, commit=True)

            old_row_count = self.row_count
            self.row_count = 0
            self.last_modified = now()
            self.last_modification = _('All %i rows deleted') % old_row_count and 0
            self.save()
        finally:
            self.unlock()
dataset/ETHPy150Open pandaproject/panda/panda/models/dataset.py/Dataset.delete_all_rows/operator `or` -> `and`