Skip to main content

Delete SFTP File

The Delete SFTP File activity deletes a specified file from a remote SFTP server.

Configuring the Delete SFTP File Activity​

To configure the Delete SFTP File activity, fill in the required fields in the activity panel.

Configuration​

FieldRequiredDescriptionExample
NameRequiredName of the step, should be unique within this workflow.MyActivity
DescriptionOptionalDescribe the purpose or function of this step.Reads a file from S3
SFTP ConnectionRequiredDrag and drop a SFTPConnection resource from the workspace.
SFTP Auth ContextOptionalAuthorization context used for SFTP connection.
DirectoryOptionalRemote directory path on the SFTP server. (mapping supported)my-data-bucket
File PathOptionalPath inside the remote directory to the file. (mapping supported)data/reports/2024/
File NameOptionalName of the file to be deleted. (mapping supported)report-2024.csv

Input​

FieldRequiredData TypeDescriptionExample
Working DirectoryOptionalStringRemote directory path on the SFTP server where the file is located.my-data-bucket
File PathOptionalStringPath inside the remote directory pointing to the file to be deleted.data/reports/2024/
File NameOptionalStringName of the file to delete from the SFTP server.report-2024.csv

Output​

FieldRequiredData TypeDescriptionExample
DeletedOptionalBooleanIndicates whether the file was successfully deleted from the SFTP server.
File PathOptionalStringThe full path to the file on the SFTP server.data/reports/2024/
File NameOptionalStringThe name of the file that was deleted.report-2024.csv
Working DirectoryOptionalStringThe directory from which the file was deleted.my-data-bucket
Content LengthOptionalNumberThe size of the file in bytes before deletion.0