DeleteMongo 2.1.0

Bundle
org.apache.nifi | nifi-mongodb-nar
Description
Executes a delete query against a MongoDB collection. The query is provided in the body of the flowfile and the user can select whether it will delete one or many documents that match it.
Tags
delete, mongo, mongodb
Input Requirement
REQUIRED
Supports Sensitive Dynamic Properties
false
  • Additional Details for DeleteMongo 2.1.0

    DeleteMongo

    Description:

    This processor deletes from Mongo using a user-provided query that is provided in the body of a flowfile. It must be a valid JSON document. The user has the option of deleting a single document or all documents that match the criteria. That behavior can be configured using the related configuration property. In addition, the processor can be configured to regard a failure to delete any documents as an error event, which would send the flowfile with the query to the failure relationship.

    Example Query

    {
      "username": "john.smith",
      "recipient": "jane.doe"
    }
    
Properties
Relationships
Name Description
success All FlowFiles that are written to MongoDB are routed to this relationship
failure All FlowFiles that cannot be written to MongoDB are routed to this relationship
Reads Attributes
Name Description
mongodb.delete.mode Configurable parameter for controlling delete mode on a per-flowfile basis. The process must be configured to use this option. Acceptable values are 'one' and 'many.'