DeleteFile 2025.10.2.19¶
Bundle¶
org.apache.nifi | nifi-standard-nar
Description¶
Deletes a file from the filesystem.
Input Requirement¶
REQUIRED
Supports Sensitive Dynamic Properties¶
false
Properties¶
| Property | Description | 
|---|---|
| Directory Path | The path to the directory the file to delete is located in. | 
| Filename | The name of the file to delete. | 
Restrictions¶
| Required Permission | Explanation | 
|---|---|
| read filesystem | Provides operator the ability to read from any file that NiFi has access to. | 
| write filesystem | Provides operator the ability to delete any file that NiFi has access to. | 
Relationships¶
| Name | Description | 
|---|---|
| failure | All FlowFiles, for which an existing file could not be deleted, are routed to this relationship | 
| not found | All FlowFiles, for which the file to delete did not exist, are routed to this relationship | 
| success | All FlowFiles, for which an existing file has been deleted, are routed to this relationship | 
Use cases¶
| Delete source file only after its processing completed |