please offer a way to delete the content of a collection
I wish there were a way to allow a user to delete the contents of a collection within a database, that allows the collection to continue. Essentially I want an easy way to empty a collection to allow new data to be filled in its place.
What about in old Mlab GUI "Delete all documents in collection" option? It is possible to truncate collection without dropping it?
One "odd" thing about a collection in MongoDB is that the collection doesn't really exist when there's no data in it.
Out of curiosity, what's the overall challenge here; in other words why can't you just start inserting data back into the collection namespace and be on your way?
I have a feeling the issue may boil own to the index configuration on that collection: if so that does make some sense. Appreciate any more color you can provide.