SFTP Delete
Delete a file from an SFTP server.
Requires an SFTP connection.
Configuration
| Field | Description | Notes |
|---|---|---|
| SFTP Connection | The SFTP connection to use | Required. Select from your configured SFTP connections. |
| File Path | The full path of the file to delete | Required. Supports templates, so you can use dynamic values from upstream nodes. Example: /uploads/processed/report.csv |
Input
The node accepts an optional file_path input. If the File Path configuration field is left empty, the node will attempt to extract a path from upstream data (looking for file_path, path, or file fields).
Output
The node outputs a single item:
| Field | Description |
|---|---|
success | true if the file was deleted |
deleted | The path of the deleted file |
WARNING
This operation is irreversible. Once a file is deleted from the SFTP server, it cannot be recovered. Consider moving files to an archive directory using the SFTP Rename / Move node instead.
TIP
Use this node at the end of a processing pipeline to clean up files after they have been successfully read and processed.