I created a collection in a database using mongo in C #. I can delete contents in a collection using ID, but not with collection. Pls help me delete a collection using C #
There are not many, just call Drop()in the collection:
Drop()
var test = db.GetCollection("test"); test.Drop();
Refresh . New way to use C # API:
db.DropCollection("test");