CakeSFTP.

SFTPDeleteFiles(ICakeContext, SFTPSettings, IEnumerable<string>) Method

Summary

Deletes files on the SFTP server
Assembly
Cake.SFTP.dll
Namespace
Cake.SFTP
Containing Type
CakeSFTP

Syntax

public static void SFTPDeleteFiles(this ICakeContext cakecontext, SFTPSettings settings, IEnumerable<string> remoteFilePaths)

Examples

var aListOfRemoteFilePaths = new List<String>{"/uploads/somefileA.txt", "/uploads/somefileB.txt"};
SFTPDeleteFiles(settings, aListOfRemoteFilePaths);

Attributes

Type Description
CakeMethodAliasAttribute

Parameters

Name Type Description
cakecontext ICakeContext The context.
settings SFTPSettings The settings file for the SFTP server.
remoteFilePaths IEnumerable<string> A list of paths to the files on the server you want to delete.

Return Value

Type Description
void