- Introduction to MongoDB >
- Databases and Collections >
- Views >
- Remove a View
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
:
To remove a view, use the db.collection.drop()
method on the
view.
For example, this command drops a view named productView01
: