This method deletes a file on an FTP server specifying the remote URI.
[Visual Basic] Public Function
FtpDeleteFile(ByVal remoteAddress As String) As Boolean
[C#] public bool FtpDeleteFile(string
remoteAddress);
Parameters
remoteAddress
URI
Return Value
Returns True if successful. Returns False if unsuccessful.
Explanation
The FtpDeleteFile method deletes a file on an FTP server specifying 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 the file
Ret = ImageKit.File.FtpDeleteFile("ftp://www.newtone.co.jp/test/test.jpg")
[Visual C#.NET]
bool Ret;
//Username and password
ImageKit.File.FtpCredentials = new NetworkCredential("user", "password");
//Deletes the file
Ret = ImageKit.File.FtpDeleteFile("ftp://www.newtone.co.jp/test/test.jpg");