CakeSFTP.

SFTPDeleteFile(ICakeContext, SFTPSettings, string) Method

Summary

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

Syntax

public static void SFTPDeleteFile(this ICakeContext cakecontext, SFTPSettings settings, string remoteFilePath)

Examples

SFTPDeleteFile(settings, "/uploads/somefile.txt");

Attributes

Type Description
CakeMethodAliasAttribute

Parameters

Name Type Description
cakecontext ICakeContext The context.
settings SFTPSettings The settings file for the SFTP server.
remoteFilePath string The path to the file on the server you want to delete.

Return Value

Type Description
void