def delete_all_rows(self, user,):
        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 or 0
            self.save()
        finally:
            self.unlock()
Delete all rows in this dataset.
dataset/ETHPy150Open pandaproject/panda/panda/models/dataset.py/Dataset.delete_all_rows