def delete_all(): for pipeline in list(Pipeline.objects.all()): pipeline.delete() return back.redirect()
def delete(pipeline_id): pipeline = Pipeline.objects.get({'_id': ObjectId(pipeline_id)}) pipeline.delete() return back.redirect()
def delete_all(): for stop_words in StopWords.objects.all(): stop_words.delete() return back.redirect()
def delete_all(): for data_source in DataSource.objects.all(): data_source.delete() return back.redirect()
def delete_all(): for ace in list(ACE.objects.all()): ace.delete() return back.redirect()
def delete(ace_id): ace = ACE.objects.get({'_id': ObjectId(ace_id)}) ace.delete() return back.redirect()