This method deletes a file from an Http server specifying the remote URI.

[Visual Basic] Public Function HttpDeleteFile(ByVal remoteAddress As String) As Boolean
[C#] public bool HttpDeleteFile(string remoteAddress);

Parameters

remoteAddress
   URI

Return Value

Returns True if successful. Returns False if unsuccessful.

Explanation

The HttpDeleteFile method deletes a file from an Http server specifying the 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");
                

See Also

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

The ImageKit WPF is created by Newtone Corporation