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


Reference:
http://sharepoint.stackexchange.com/questions/111263/powershell-delete-remove-all-site-collection-under-a-spesific-managed-path

Comments

Popular posts from this blog

SPFx: Develop using SharePoint Framework without Installing all the dependecies.

SharePoint Online: Elevated Permissions....with love

Powershell: Filling up an Existing Excel Sheet with data from SQL Server