To delete any SharePoint site collection, You have use SharePoint Central Administration site. Navigate to :
Hostnamed site collections can be managed only through PowerShell! Central Admin doesn't offer the provision to delete Host named site collections as it offers for Path-based sites. Following are some examples of deleting SharePoint 2013/2010 site collections using PowerShell.
Delete site collection using PowerShell
To delete site collection through PowerShell, use Remove-SPSite cmdlet.
If you face any difficulty in deleting SharePoint site collection either from Central Admin or with PowerShell, you can force delete as:
Bulk delete site collections with PowerShell in SharePoint 2013
How about bulk deleting multiple site collections? Say, You want to delete all site collections under the given managed path: /Sites?
If you don't want to send your SharePoint sites to recycle bin and would like to remove them permanently, use:
Related posts:
- SharePoint 2013 Central Administration >> Application Management
- Click on Delete a site collection link under Site Collections group
- Select the site collection to delete
- Click on Delete button to delete a site collection in SharePoint.
Hostnamed site collections can be managed only through PowerShell! Central Admin doesn't offer the provision to delete Host named site collections as it offers for Path-based sites. Following are some examples of deleting SharePoint 2013/2010 site collections using PowerShell.
Delete site collection using PowerShell
To delete site collection through PowerShell, use Remove-SPSite cmdlet.
Remove-SPSite -Identity "<Site-Collection-URL>"E.g.
Remove-SPSite -Identity "http://sharepoint.crescent.com/sites/operations"Force delete SharePoint site collection PowerShell
If you face any difficulty in deleting SharePoint site collection either from Central Admin or with PowerShell, you can force delete as:
#Get the site collection to delete
$Site = Get-SPSite http://site-collection-url
#Get the content database of the site collection
$SiteContentDB = $site.ContentDatabase
#Force delete site collection
$SiteContentDB.ForceDeleteSite($Site.Id, $false, $false)
Bulk delete site collections with PowerShell in SharePoint 2013
How about bulk deleting multiple site collections? Say, You want to delete all site collections under the given managed path: /Sites?
Get-SPSite "http://sharepoint.crescent.com/sites*" -Limit ALL | Remove-SPSite -Confirm:$falsePowerShell to delete all site collections under a web application:
If you don't want to send your SharePoint sites to recycle bin and would like to remove them permanently, use:
#Web Application URL
$WebAppURL="http://SharePoint.crescent.com"
#Get Each site collection and delete
Get-SPWebApplication $WebAppURL | Get-SPSite -Limit ALL | Remove-SPSite -Confirm:$false
Related posts:
- Restore Deleted Site collections in SharePoint 2013
- Force delete orphaned site collection in SharePoint 2013 using PowerShell