Skip to content

SFTP Delete

Delete a file from an SFTP server.

Requires an SFTP connection.

Configuration

FieldDescriptionNotes
SFTP ConnectionThe SFTP connection to useRequired. Select from your configured SFTP connections.
File PathThe full path of the file to deleteRequired. 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:

FieldDescription
successtrue if the file was deleted
deletedThe 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.