This method deletes the file on the Http server with specified scheme, host name and path name.

[Visual Basic] Public Function DeleteFile(ByVal scheme As String, ByVal remoteHost As String, ByVal remotePath As String) As Boolean
[C#] public bool DeleteFile(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 DeleteFile method deletes the file on the Http server with specified scheme, host name and path name.

This method is effective for the HTTP or HTTPS protocol.


Example

[Visual Basic.NET]
Dim _http As New Newtone.ImageKit.Http
Dim Ret As Boolean
'Username and password
_http.Credentials = New NetworkCredential("user", "password")
'Deletes the file
Ret = _http.DeleteFile("http", "www.newtone.co.jp", "test/test.jpg")

[Visual C#.NET]
Newtone.ImageKit.Http _http = new Newtone.ImageKit.Http();
bool Ret;
//Username and password
_http.Credentials = new NetworkCredential("user", "password");
//Deletes the file
Ret = _http.DeleteFile("http", "www.newtone.co.jp", "test/test.jpg");

See Also

Http Class | Http Members


The ImageKit.NET X is created by Newtone Corporation