Delete an Item

 

Updated: October 9, 2012

Applies To: Windows Server 2012 Essentials

Deletes an existing item in a path where the user has the required permissions. If the path is a folder, the method also removes all items in the folder.

POST services/builtin/FileOperationService.svc/item/delete?path={path}

{path}
A network path that begins with the server name, in the format /ServerName/FolderPath[/FileName].

POST https://www.contoso.com/services/builtin/FileOperationService.svc/item/delete?path=servername/Company/abc123 HTTP/1.1  
Accept: application/xml  
Cookie: ASP.NET_SessionId=********************  
Canary: *********************  
Host: domainname  
Content-Length: 0  
  

HTTP/1.1 200 OK  

Error CodeError Message
401Access is denied to the requested resource.
404The path does not exist.

Web Service Methods

Show: