Remove a View
This version of the documentation is archived and no longer supported. View the current documentation to learn how to upgrade your version of MongoDB server.
To remove a view, use the db.collection.drop()
method on the
view.
For example, this command drops a view named productView01
:
db.productView01.drop()