Docs Menu

Delete Methods

MongoDB provides the following methods to delete documents of a collection:

Delete at most a single document that match a specified filter even though multiple documents may match the specified filter.

New in version 3.2.

Delete all documents that match a specified filter.

New in version 3.2.

Delete a single document or all documents that match a specified filter.

The following methods can also delete documents from a collection:

See the individual reference pages for the methods for more information and examples.

Give Feedback
MongoDB logo
© 2021 MongoDB, Inc.

About

  • Careers
  • Legal Notices
  • Privacy Notices
  • Security Information
  • Trust Center
© 2021 MongoDB, Inc.