forked from p15670423/monkey
Island: Use drop() to clear mongo credentials collections
This commit is contained in:
parent
6e47d3272d
commit
5aff1c62c3
|
@ -109,6 +109,6 @@ class MongoCredentialsRepository(ICredentialsRepository):
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def _remove_credentials_fom_collection(collection):
|
def _remove_credentials_fom_collection(collection):
|
||||||
try:
|
try:
|
||||||
collection.delete_many({})
|
collection.drop()
|
||||||
except RemovalError as err:
|
except RemovalError as err:
|
||||||
raise err
|
raise err
|
||||||
|
|
Loading…
Reference in New Issue