Docs HomeMongoDB Manual

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()