title: MongoDb: How to drop a database using shell using authentication?
body: <p>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 </p>
  
  <pre><code>mongo -uuser -ppass newdb --eval "db.dropDatabase();"
  </code></pre>
  
  <p>I got following:-</p>
  
  <pre><code>MongoDB shell version: 2.4.9
  connecting to: newdb
  [object Object]
  </code></pre>
  
  <p>That's it I got no errors and no results. The database still exists with all values.</p>