FtpAliases.

FtpDeleteFile(ICakeContext, Uri, FtpSettings) Method

Summary

Delets the file on the FTP server using the supplied credentials.
Assembly
Cake.Ftp.dll
Namespace
Cake.Ftp
Containing Type
FtpAliases

Syntax

public static void FtpDeleteFile(this ICakeContext context, Uri serverUri, FtpSettings settings)

Examples

Task("DeleteFile")
  .Does(() => {
    var settings = new FtpSettings() {Username = "some-user", Password = "some-password"};
    FtpDeleteFile("ftp://myserver/random/test.htm", settings);
});

Attributes

Type Description
CakeMethodAliasAttribute

Parameters

Name Type Description
context ICakeContext The context.
serverUri Uri FTP URI requring FTP:// scehma.
settings FtpSettings The settings.

Return Value

Type Description
void