How to remove collection named 'group'?


I accidentally created a collection named 'group'. How do I remove it.

When I give the following in the mongo console

db.group.drop()
I get the following error

Fri Jun  7 16:36:39.630 JavaScript execution failed: TypeError: Object function ( parmsObj ){
     var ret = this.runCommand( { "group" : this._groupFixParms( parmsObj ) } );
     if ( ! ret.ok ){
         throw "group command failed: " + tojson( ret );
     }
     return ret.retval;
} has no method 'drop'




db.getCollection('group').drop()

才行

你可能感兴趣的:(Collection)