删除数据库:
> use testswitched to db test> db.foo.save({name:'asdfdsf'})> show dbsadminlocaltest> dbtest> db.dropDatabase(){ "dropped" : "test", "ok" : 1 }> show dbsadminlocal>
删除集合:
> use testswitched to db test> db.foo.save({name:'sdfdsf'})> show collectionsfoosystem.indexes> db.foo.drop()...