For the complete documentation index, see llms.txt. This page is also available as Markdown.

DeleteFiles

Frends Task for deleting files from SFTP server.

Task version: 3.0.0

Required Frends version: 5.5+

Required .NET version: 6.0

Compatible Agents: Crossplatform

Task Parameters

Name
Description

Directory : String

Full path of the target file to be deleted.

Default: / Example: /destination

FileMask : String

Pattern to match (Optional).

Default: - Example: *.txt

FilePaths : Object

The paths to the files to be deleted, mainly meant to be used with the file trigger with the syntax: #trigger.data.filePaths

Default: - Example: #trigger.data.filePaths

FileEncoding : FileEncoding

If set, this ecoding will be used to encode and decode command

parameters and server responses, such as file names.

By selecting 'Other' you can use any encoding.

Possible values:

  • UTF8: If set, this ecoding will be used to encode and decode command

parameters and server responses, such as file names.

By selecting 'Other' you can use any encoding.

  • ANSI: If set, this ecoding will be used to encode and decode command

parameters and server responses, such as file names.

By selecting 'Other' you can use any encoding.

  • ASCII: If set, this ecoding will be used to encode and decode command

parameters and server responses, such as file names.

By selecting 'Other' you can use any encoding.

  • WINDOWS1252: If set, this ecoding will be used to encode and decode command

parameters and server responses, such as file names.

By selecting 'Other' you can use any encoding.

  • Unicode: If set, this ecoding will be used to encode and decode command

parameters and server responses, such as file names.

By selecting 'Other' you can use any encoding.

  • Other: If set, this ecoding will be used to encode and decode command

parameters and server responses, such as file names.

By selecting 'Other' you can use any encoding.

Default: 1 Example: FileEncoding.ANSI

EnableBom : Boolean

Additional option for UTF-8 encoding to enable bom.

Default: False Example: true

EncodingInString : String

File encoding to be used.

Encoding don't support any unicode encoding. It only support the code page encodings.

A partial list of possible encodings: https://en.wikipedia.org/wiki/Windows_code_page#List.

Default: - Example: utf-8

Task Result

Name
Description

Files : List<FileItem>

List of file items deleted from directory. Example: [test.txt, test2.txt]

Task Changelog

Changelog for Task Frends.SFTP.DeleteFiles.

[3.0.0] - 2026-01-27

Changed

Breaking changes!

  • Updated dependency SSH.NET to the newest version 2025.1.0.

  • Drop DSS support

[2.3.0] - 2026-01-13

Fixed

  • Operation timeout is now using the Connection.ConnectionTimeout parameter.

[2.2.0] - 2025-01-13

Fixed

  • Fixed issue with ConnectionInfoBuilder having static properties for connection and input parameters which led to Task not being thread safe.

[2.1.0] - 2024-08-19

Updated

  • Updated Renci.SshNet library to version 2024.1.0.

[2.0.0] - 2024-01-02

Updated

  • [Breaking] Updated dependency SSH.NET to the newest version 2023.0.0.

Changed

  • Changed connection info builder to create the connection info as it's done in DownloadFiles.

[1.0.0] - 2023-09-01

Changed

  • Initial implementation

Last updated

Was this helpful?