MongoDB Bulk icon

MongoDB Bulk

Perform bulk operations on MongoDB collections

Delete Many

AI-generated

Summary

Delete multiple documents from a MongoDB collection matching a filter.

Inputs

  • collection (required) — Name of the MongoDB collection to delete from.
  • filter — Query filter selecting the documents to delete. Defaults to an empty object (matches all documents).
  • options — Additional options for the delete operation. Contains a single boolean option to convert string _id values in the filter to MongoDB ObjectId.

Output shape

Array of objects, one per input item, each containing the delete result and a reference to the input item.

The delete result includes fields such as acknowledged and deletedCount. The pairedItem property points back to the originating input item.

Examples

Example 1: Remove all inactive users

Set Collection to users, Filter to { status: 'inactive' }, leave Options at defaults.

Discussion