def drop_all_annotations(self): db.delete(DocumentAnnotation.all().fetch(10000)) db.delete(ArgumentationUnit.all().fetch(10000)) db.delete(UserData.all().fetch(10000))
def drop_all_data(self): db.delete(DocumentAnnotation.all().fetch(10000)) db.delete(ArgumentationUnit.all().fetch(10000)) db.delete(Document.all().fetch(10000)) db.delete(UserData.all().fetch(10000)) db.delete(CorpusMetadata.all().fetch(10000))