How to remove documents from a capped collection in MongoDB

You can’t remove one or all documents from a capped collection in MongoDB. BUT! you can drop the collection! Execute the following command: db.getCollection(‘myCollection’).drop() The result for me is: true There you go, quick and easy. Sources https://docs.mongodb.com/manual/core/capped-collections/ https://stackoverflow.com/questions/33048282/how-to-remove-a-document-from-the-capped-collection

How to count documents of a collection in MongoDB

Today, I had to do this at work. turns out it is very easy. I am using Robomongo 1.0-RC1. I just double click on the collection that I want, in this case knives and I just execute the following query: db.getCollection(‘knives’).count() The result in my case is: 1911 Hope it helps! Sources https://docs.mongodb.com/manual/reference/method/db.collection.count/