This method deletes a file on an FTP server specifying the host name and the remote URI.
[Visual Basic] Public Function
FtpDeleteFile(ByVal remoteHost As String, ByVal remotePath As
String) As Boolean
[C#] public bool FtpDeleteFile(string
remoteHost, string remotePath);
Parameters
remoteHost
Domain name in DNS style, or IP address
remotePath
The name of the remote path
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 and the remote URI..
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 a file Ret = ImageKit.File.FtpDeleteFile("www.newtone.co.jp", "test/test.jpg") [Visual C#.NET] bool Ret; //Username and password ImageKit.File.FtpCredentials = new NetworkCredential("user", "password"); //Deletes a file Ret = ImageKit.File.FtpDeleteFile("www.newtone.co.jp", "test/test.jpg");