Created
September 13, 2017 12:21
-
-
Save seiteta/df4cee0310004f40aa883bbd93be62ef to your computer and use it in GitHub Desktop.
Drop a mongo database
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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