Steps Involved:
- Open SharePoint 2010 Management Shell by going to Start | All Programs | SharePoint | Microsoft SharePoint 2010 Products | SharePoint 2010 Management Shell (Run as Administrator).
- Run the following script.
Powershell Script:
## Delete the folder from the document library for the document workspace site using SharePoint 2010 web service in powershell $uri="http://serverName:10736/sites/ECT2/DWS/_vti_bin/DWS.asmx?wsdl" ## $folderURL is a string which contains the folder url that has to be deleted - "Shared Documents/folder_name". [String]$folderURL="Shared Documents/NewFolder"
## Web Service Reference - http://Site/_vti_bin/DWS.asmx $dwsWebServiceReference = New-WebServiceProxy -Uri $uri -UseDefaultCredential $dwsWebServiceReference.DeleteFolder($folderURL)
|