Avatar Edgar González

  • Random
  • Archive
  • RSS

Drop a database in MongoDB

If you want to delete a database named ‘dummy_db’ just do this:

$ mongo
> use dummy_db
switched to db dummy_db
> db.dropDatabase()
{ "dropped" : "dummy_db", "ok" : 1 }
    • #mongo
    • #mongodb
    • #MongoDB
  • 9 months ago
  • 24
  • Comments
  • Permalink
  • Share
    Tweet

24 Notes/ Hide

  1. determinesek6 liked this
  2. promontoryop3 liked this
  3. resorts69 liked this
  4. bonham690 liked this
  5. edgar posted this

Recent comments

Blog comments powered by Disqus
← Previous • Next →

Portrait/Logo

About

When I'm not spending time with Jessica and my kids, I build web applications. Rails developer, believer of Agile Development and Lean startups. NoSQL enthusiast.
CTO and Lord of the API at Piictu

Me, Elsewhere

  • @edgar on Twitter
  • Facebook Profile
  • edgargonzaleznetve on Youtube
  • egg on Flickr
  • edgar on Foursquare
  • My Skype Info
  • Linkedin Profile
  • edgar on github

Twitter

loading tweets…

  • RSS
  • Random
  • Archive
  • Mobile

Effector Theme by Carlo Franco.

Powered by Tumblr