DeleteFile 2025.10.9.21

Bundle

org.apache.nifi | nifi-standard-nar

Description

Deletes a file from the filesystem.

Tags

delete, file, files, filesystem, local, remove

Input Requirement

REQUIRED

Supports Sensitive Dynamic Properties

false

Properties

PropertyDescription
Directory PathThe path to the directory the file to delete is located in.
FilenameThe name of the file to delete.

Restrictions

Required PermissionExplanation
read filesystemProvides operator the ability to read from any file that NiFi has access to.
write filesystemProvides operator the ability to delete any file that NiFi has access to.

Relationships

NameDescription
failureAll FlowFiles, for which an existing file could not be deleted, are routed to this relationship
not foundAll FlowFiles, for which the file to delete did not exist, are routed to this relationship
successAll FlowFiles, for which an existing file has been deleted, are routed to this relationship

Use cases

Delete source file only after its processing completed