Remove a View删除视图
To remove a view, use the 要删除视图,请对视图使用db.collection.drop()
method on the view.db.collection.drop()
方法。
For example, this command drops a view named 例如,此命令将删除一个名为productView01
:productView01
的视图:
db.productView01.drop()