Remove FTP file
Description
Removes a file from an FTP/SFTP server. Takes an FTP file object from Find/Get FTP files — the server connection comes from the file itself. Branches on success/error; the error branch is taken when the file does not exist.
When to use
Use Remove FTP file to delete a file from a remote FTP, FTPS, or SFTP server — typically after successfully processing it. Wire in a file object from Find FTP files or Get FTP file; the connection is read off the file itself, so there’s no Credentials input to fill in. The Error pin fires if the file input isn’t connected, or if the upstream node reported exists = false. If you want to keep the original instead of deleting it, use Move FTP file to shuffle it into an archive directory.
Pins
Input pins
| Pin | Type | Default | Notes |
|---|---|---|---|
| File | FTP file | — | FTP file object from Find FTP files or Get FTP file. The error branch fires if this input isn't connected, or if the file's exists field is false — the server connection is read from the file object itself, so there's no separate Credentials input. |
Execution pins
| Pin | Direction |
|---|---|
| In | Input |
| Success | Output |
| Error | Output |
Example
Delete a CSV after parsing it. Wire FTP username/password credentials into Find FTP files, and on Success pass each Files element (via a For each loop) into both Open FTP file and Remove FTP file. After Open FTP file’s Success pin, parse the stream; then on the parser’s Success pin, fire Remove FTP file with the same file object. Wire its Error pin to a Log message so deletion failures don’t go unnoticed.