PROCESIO
OverviewPlatform ActionsIntegrations & DemosMarketplaceCustom ActionsDeveloperโ€™s Guide

Delete File

Deletes one file from a folder on an SFTP or FTP server.

Delete File removes one file from your SFTP or FTP server, for example after you have downloaded and processed it.

Before you start

The action connects through an FTP credential that you create once in the Credential Manager (host, port, protocol FTP or SFTP, an optional Directory path, and a user name with a password or a key file). See FTP Credential.

Add the action

In the Process Designer toolbox, open SFTP and pick Delete File (or type Delete File in the search box).

The Delete File action properties: Select SFTP credentials, Folder Path, File Name and Result

Inputs and outputs

FieldDirectionTypeRequiredWhat to put / what you get
Select SFTP credentialsInputFTP credentialYesThe credential of the server.
Folder PathInputTextNoThe folder that holds the file, relative to the credential's Directory path. Leave empty for the root folder.
File NameInputTextNoThe name of the file to delete, with its extension.
ResultOutputBooleanYestrue if the file was deleted, false if not.

Example

Folder Path inbox, File Name order-17.csv โ†’ inbox/order-17.csv is removed and Result is true.

Good to know

  • The deletion can't be undone.
  • File Name isn't marked as required in the panel, but you need it: without a name there is nothing to delete.
  • If the server returns an error, the step fails with "Error while trying to delete file".
  • To delete several files at once, use Delete Bulk. To delete a folder with everything in it, use Delete Folder.

On this page