以下の内容はhttps://shoken.hatenablog.com/entry/2014/05/21/195136より取得しました。


MongoDBでcollectionを削除する方法

MongoDBでコレクションを削除するにはdrop()を使います。

[root@xxx ~]# mongo
MongoDB shell version: 2.4.5
connecting to: test

> db.students.insert({"name":"shoken"}) ## studentsコレクションを作成
> show collections
students
system.indexes
> db.students.drop()
true
> show collections
system.indexes            ## studentsコレクションが削除されている



以上の内容はhttps://shoken.hatenablog.com/entry/2014/05/21/195136より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14