string sURL = "<HERE GOES YOUR URL>";
WebRequest request = WebRequest.Create(sURL);
request.Method = "DELETE";
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
In the response object you should check the StatusCode property (it should be 200 or 204 if everything goes right, see here for more info).

被折叠的 条评论
为什么被折叠?



