Skip to content

Instantly share code, notes, and snippets.

@seiteta
Created September 13, 2017 12:21
Show Gist options
  • Save seiteta/df4cee0310004f40aa883bbd93be62ef to your computer and use it in GitHub Desktop.
Save seiteta/df4cee0310004f40aa883bbd93be62ef to your computer and use it in GitHub Desktop.
Drop a mongo database
# Launch the mongo shell:
mongo
# List all databases:
show dbs
# Switch to the database you want to drop (here `mydb`):
use mydb
# Drop it:
db.dropDatabase()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment