Issue
I am new to MongoDb and I am trying to interact with databases using command line interface. However, I am facing the error uncaught exception. Can anyone please help me to solve this problem?
> show dbs
Organization 0.000GB
admin 0.000GB
config 0.000GB
local 0.000GB
> Organizations.dropDatabase()
uncaught exception: ReferenceError: Organizations is not defined :
@(shell):1:1
>
Thanks for your help
Solution
Look how dropDatabase works.
> use Organizations
> db.dropDatabase()
Answered By - Ofir Bi