I have a authenticated user with all required privileges to drop a database. I want to drop the database from the shell and tried following command
mongo -uuser -ppass newdb --eval "db.dropDatabase();"
I got following:-
MongoDB shell version: 2.4.9
connecting to: newdb
[object Object]
That's it I got no errors and no results. The database still exists with all values.