DeleteResource Method
Delete a resource.
Syntax
[VB.NET] Public Sub DeleteResource(ByVal ResourceURI As String)
[C#] public void DeleteResource(string resourceURI);
Remarks
The resource or collection specified by ResourceURI is deleted. The DeleteResource method behaves independently of the Depth property. If ResourceURI denotes a non-collection resource, it is first removed from any collection which contains, then is removed from the server. If ResourceURI denotes a collection, the server behaves as if the command were issued with an infinite depth (ie, all internal member URIs denoting single resources or collections are deleted).