This method deletes a file on an FTP server specifying the host name, the remote URI, and the port number.

[Visual Basic] Public Function FtpDeleteFile(ByVal remoteHost As String, ByVal remotePath As String, ByVal remotePort As Integer) As Boolean
[C#] public bool FtpDeleteFile(string remoteHost, string remotePath, int remotePort);

Parameters

remoteHost
   Domain name in DNS style, or IP address

remotePath
   The name of the remote path

remotePort
   IP port number

Return Value

Returns True if successful. Returns False if unsuccessful.

Explanation

The FtpDeleteFile method deletes a file on an FTP server specifying the host name, the remote URI, and the port number.

This method is effective for the FTP protocol.

Example

[Visual Basic.NET] 
Dim Ret As Boolean 
'Username and password 
ImageKit.File.FtpCredentials = New NetworkCredential("user","password") 
'Deletes the file 
Ret = ImageKit.File.FtpDeleteFile("www.newtone.co.jp", "test/test.jpg",21) 

[C#] 
bool Ret; 
//Username and password
ImageKit.File.FtpCredentials = new NetworkCredential("user", "password");
//Deletes the file
Ret = ImageKit.File.FtpDeleteFile("www.newtone.co.jp", "test/test.jpg", 21);

See Also

ImageKit.File Members | Newtone.ImageKit.Wpf.ImageKit

The ImageKit WPF is created by Newtone Corporation