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.
Steps Involved:
Powershell Script:
$listName="Custom List"
$uri="http://serverName:10736/sites/ECT/_vti_bin/Lists.asmx?wsdl"
$listWebServiceReference = New-WebServiceProxy -Uri $uri -UseDefaultCredential
$listWebServiceReference.DeleteList($listName)
write-host -ForegroundColor Green $listName " is deleted successfully"
For more information on New-WebServiceProxy please refer http://technet.microsoft.com/en-us/library/dd315258.aspx.
Join the conversation! Your thoughts help the community grow.