Search This Blog

Sunday, January 10, 2016

How to remove site collection in sharepoint 2013 using powershell

param(
[string]$SiteURL
)
Try
{
Remove-SPSite -Identity $SiteURL -Confirm:$false
}
Catch
{
write-host "Exception Message: $($_.Exception.Message)"
}

No comments:

Post a Comment