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
|
||||
def _remove_credentials_fom_collection(collection):
|
||||
try:
|
||||
collection.delete_many({})
|
||||
collection.drop()
|
||||
except RemovalError as err:
|
||||
raise err
|
||||
|
|
Loading…
Reference in New Issue