Export (0) Print
Expand All

Remove a Shared Folder

Updated: October 9, 2012

Applies To: Windows Server 2012 Essentials

Removes or ends the sharing of a shared folder on the server.

URI Template

POST services/builtin/StorageManagement.svc/serverfolder/{id}/delete/deletecontents/{deleteContents}

{id}
The identifier for the shared folder.

{deleteContents}
true to end the sharing of the shared folder and delete the contents of the shared folder; false to end the sharing of the shared folder without deleting the contents.

Sample Request

POST https://www.contoso.com/services/builtin/StorageManagement.svc/serverfolder/344bc4ac-9164-492a-9066-61afd13522e7/delete/deletecontents/True HTTP/1.1
Content-Type: application/xml
Accept: application/xml
Cookie: ASP.NET_SessionId=********************
Canary: *********************
Host: domainname
Content-Length: 0


Sample Response

HTTP/1.1 200 OK

Error Codes

 

Error Code Error Message

400

One or more parameters are not valid.

401

Access is denied to the requested resource.

404

The path does not exist.

See Also

Show:
© 2014 Microsoft