Skip to content

Commit

Permalink
Allow cleanup (2)
Browse files Browse the repository at this point in the history
  • Loading branch information
bernardusrendy committed Mar 1, 2024
1 parent 7188618 commit 49043e0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions alab_management/scripts/cleanup_lab.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ def cleanup_lab(
f"If you want to remove the simulation database then type in "
f"{config['general']['name']}_sim: "
)
print(f"Removing database {database_name}")
_GetMongoCollection.init()
_GetMongoCollection.client.drop_database(database_name) # type: ignore

# if sim_mode != AlabOSConfig().is_sim_mode() or database_name == "Alab":
# print("Wrong name of database. Hence, not removed.")
Expand Down

0 comments on commit 49043e0

Please sign in to comment.