Docs Menu

Docs HomeMongoDB Manual

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:

←  Modify a ViewSupported Operations for Views →
Share Feedback
© 2023 MongoDB, Inc.


  • Careers
  • Investor Relations
  • Legal Notices
  • Privacy Notices
  • Security Information
  • Trust Center
© 2023 MongoDB, Inc.