Merge branch 'master' of https://hyde.infosys.tuwien.ac.at/aic20/g4t2
This commit is contained in:
@@ -72,4 +72,14 @@ class MongoDBService:
|
||||
|
||||
@staticmethod
|
||||
def deleteAll():
|
||||
print("im Delete all")
|
||||
instance = MongoManager.getInstance()
|
||||
|
||||
db = instance.AIC
|
||||
col = db.metadata
|
||||
|
||||
try:
|
||||
resp = col.delete_many({})
|
||||
return resp
|
||||
except:
|
||||
print("Could not delete Metadata")
|
||||
return resp
|
||||
Reference in New Issue
Block a user