In the mongo shell:
use [database];
db.dropDatabase();
And to remove the users:
db.dropAllUsers();
More Related Contents:
- MEAN app vs. Mongo service local in Angular2
- Find objects between two dates MongoDB
- MongoDB: Combine data from multiple collections into one..how?
- How to update the _id of one MongoDB Document?
- Multiple join conditions using the $lookup operator
- How to Model a “likes” voting system with MongoDB
- Overflow sort stage buffered data usage exceeds internal limit
- Slow pagination over tons of records in mongodb
- MongoDB – paging
- MongoDB query with an ‘or’ condition
- mongo.exe not installed in Version 6.0.0
- multiple instances of Mongo DB on same server
- How can I share MongoDB collections between Meteor apps?
- How to sum every fields in a sub document of MongoDB?
- Where does mongodb stand in the CAP theorem?
- MongoDB: exception in initAndListen: 20 Attempted to create a lock file on a read-only directory: /data/db, terminating
- MongoDB select count(distinct x) on an indexed column – count unique results for large data sets
- MongoDB 3.2 authentication failed
- MongoDB ‘unable to find index for $geoNear query’
- Does Mongoose support the Mongodb `findAndModify` method?
- MongoDB Text Search AND multiple search words
- How to get multiple document using array of MongoDb id?
- MongoDB : aggregation framework : $match between fields
- MongoDB.service failed with result exit-code
- How can I sort a Meteor collection by time of insertion?
- How to do pagination using range queries in MongoDB?
- MongoDB Single Document size limit is 16MB
- Export mongodb aggregation framework result to a new collection
- MongoDB aggregate by field exists
- MongoDB {aggregation $match} vs {find} speed