I have multiple databases on mongo, let's say mydb
, mydb1
, mydb2
, mydb3
, mydb4
.
Sometimes I want to drop all these databases except mydb
. It is a process that I do manually, right click in the mouse -> Drop Database
.
I am looking for commands that I can execute to change the database in Robo 3T, where I am connected to and be able to drop the database, without using the mouse, or query the database.
Is this possible?
From mongo shell you could run
db.getSiblingDB("database name").dropDatabase()
Not sure of that will run in Robo3T