DeleteGridFS 2025.10.9.21

Bundle

org.apache.nifi | nifi-mongodb-nar

Description

Deletes a file from GridFS using a file name or a query.

Tags

delete, gridfs, mongodb

Input Requirement

REQUIRED

Supports Sensitive Dynamic Properties

false

Properties

PropertyDescription
delete-gridfs-queryA valid MongoDB query to use to find and delete one or more files from GridFS.
gridfs-bucket-nameThe GridFS bucket where the files will be stored. If left blank, it will use the default value ‘fs’ that the MongoDB client driver uses.
gridfs-client-serviceThe MongoDB client service to use for database connections.
gridfs-database-nameThe name of the database to use
gridfs-file-nameThe name of the file in the bucket that is the target of this processor. GridFS file names do not include path information because GridFS does not sort files into folders within a bucket.
mongo-query-attributeIf set, the query will be written to a specified attribute on the output flowfiles.

Relationships

NameDescription
failureWhen there is a failure processing the flowfile, it goes to this relationship.
successWhen the operation succeeds, the flowfile is sent to this relationship.