This method deletes a file from an Http server specifying the protocol scheme, the host name and remote URI
[Visual Basic] Public Function
HttpDeleteFile(ByVal scheme As String, ByVal remoteHost As String,
ByVal remotePath As String) As Boolean
[C#] public bool HttpDeleteFile(string scheme,
string remoteHost, string remotePath);
Parameters
scheme
Internet access protocol ("http" or "https")
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 HttpDeleteFile method deletes a file from an Http server specifying the protocol scheme, the host name and remote URI.
This method is effective for the HTTP or HTTPS protocol.
Example
[Visual Basic.NET] Dim Ret As Boolean 'Username and password ImageKit.File.HttpCredentials = New NetworkCredential("user", "password") 'Deletes the file Ret = ImageKit.File.HttpDeleteFile("http", "www.newtone.co.jp", "test/test.jpg") [Visual C#.NET] bool Ret; //Username and password ImageKit.File.HttpCredentials = new NetworkCredential("user", "password"); //Deletes the file Ret = ImageKit.File.HttpDeleteFile("http", "www.newtone.co.jp", "test/test.jpg");