You are viewing an offline version of MongoDB documentation. Some page features might be unavailable. To view the latest version of the page or use interactive features, visit the live page.
Remove a View
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()