SharePoint 2010/2013: Deleting Specific Site Collections using Powershell

If you need to delete certain sites collection based on some criteria inside a specific web application then here are couple of simple powershell command which will aid you in doing just that using wild cards characters.

Get-SPSite "http://de-oss-102:14435/Sites/00*" -Limit ALL
Get-SPSite "http://de-oss-102:14435/Sites/00*" -Limit ALL | Remove-SPSite -Confirm:$false


Post navigation

Leave a Reply

Your email address will not be published. Required fields are marked *