Island: Use drop() to clear mongo credentials collections

This commit is contained in:
Mike Salvatore 2022-09-15 11:54:06 -04:00
parent 6e47d3272d
commit 5aff1c62c3
1 changed files with 1 additions and 1 deletions

View File

@ -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