Archive

Archive for April, 2015

Steps to Remove orphan sites from SharePoint

April 28, 2015 Leave a comment

Remove Orphan sites from SharePoint Health Analyzer

1) Open Powershell and Run Test-SPContentDatabase command

Test-SPContentDatabase -Name <Database_Name> -WebApplication <URL>

This will show the IDs of the Orphan sites.

2) Run stsadm command to delete the site from the database

stsadm -o deletesite -siteId <ID> -databasename <database_name> -databaseserver <server_name> -force