FtpAliases.

FtpDeleteFile(ICakeContext, Uri, string, string) 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, string username, string password)

Examples

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

Attributes

Type Description
CakeMethodAliasAttribute

Parameters

Name Type Description
context ICakeContext The context.
serverUri Uri FTP URI requring FTP:// scehma.
username string Username of the FTP account.
password string Password of the FTP account.

Return Value

Type Description
void