

def delete_all_rows(self, user):
    '\n        Delete all rows in this dataset.\n        '
    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:
        user.unlock()

dataset/ETHPy150Open pandaproject/panda/panda/models/dataset.py Dataset.delete_all_rows/VarMisuse@93/148 `self`->`user`