

def delete(self, *args, **kwargs):
    '\n        Cancel any in progress task.\n        '
    if self.current_task:
        self.current_task.request_abort()
    for upload in self.data_uploads.all():
        upload.delete(skip_purge=True, force=True)
    for upload in self.related_uploads.all():
        upload.delete()
    PurgeDataTask.apply_async(args=[self.slug])
    solr.delete(settings.SOLR_DATASETS_CORE, ('slug:%s' % upload.slug))
    super(Dataset, self).delete(*args, **kwargs)

dataset/ETHPy150Open pandaproject/panda/panda/models/dataset.py Dataset.delete/VarMisuse@105/147 `self`->`upload`