drop

{ drop: <collection_name> }

mongo shell 提供了等效的辅助方法db.collection.drop()

此命令还删除与删除的集合关联的所有索引。

Warning

此命令在受影响的数据库上获得写锁定,并将阻止其他操作,直到完成为止。

首页