Linked Questions

945 votes
21 answers
543k views

What's the easiest way to do this from my bash prompt?
coffee-grinder's user avatar
92 votes
6 answers
76k views

How would I mock out the database in my node.js application, which in this case uses mongodb as the backend for a blog REST API ? Sure, I could set the database to a specific testing -database, but I ...
Industrial's user avatar
  • 42.9k
11 votes
2 answers
27k views

How can you drop a numeric collection from MongoDB? PRIMARY> db.123456789011.remove({}); Tue Mar 20 08:42:51 SyntaxError: missing ; before statement (shell):1 PRIMARY> db.123456789011.drop({});...
Petrogad's user avatar
  • 4,433
11 votes
3 answers
25k views

Is there an easy way to clear a mongodb database running in docker? Or possibly delete it all and create it again?
Cisplatin's user avatar
  • 2,998
7 votes
2 answers
6k views

Is there a way to drop all the collections in a MongoDB database using one command, without needing to name each individual collection? From what I've found, it looks like the command to do this is ...
Woodchuck's user avatar
  • 4,562
3 votes
2 answers
5k views

I have a list of databases in my MongoDB. How to delete all databases except local, admin, and config?
Ponabenthur Vithushan's user avatar
3 votes
1 answer
7k views

I am having a space problem with mongoDB and my current ubuntu 12.04 desktop computer. I always used the default setting which means that the data is physically stored under /var/lib/mongodb. By the ...
MajorYel's user avatar
  • 389
3 votes
2 answers
3k views

I have a sensor hooked up to a Raspi, gathering data using Mongo. Every few days I copy the database (using mongodump) and then delete the Mongo files and restart the sensor. I have had some trouble ...
SomeRandomFinn's user avatar
1 vote
2 answers
255 views

I have a Node / Mongoose / MongoDB project which I use Selenium WebDriver for integration tests. Part of my testcase setup is to wipe the database before each test. I accomplish this via command line ...
DanH's user avatar
  • 5,818
0 votes
1 answer
73 views

When developing with Meteor locally, one execute meteor reset locally to refresh the database. Can one run this command on a production level app deployed on Bluemix without digging into the Mongo ...
ilrein's user avatar
  • 3,933