first_page the funky knowledge base
personal notes from way, _way_ back and maybe today

“SharePoint: Delete / Purge / Remove Orphaned Sites or Site Collections”; sharenotes.wordpress.com

Microsoft makes it tough with simple things like finding and deleting the orhpaned sites/site collections. There seems to be no well documented way to do this task. After googling for many search strings, below are few resources and steps you can take to clean up your content and config databases.

  1. Run the following command:

stsadm -o databaserepair -url http://<URL_of_WindowsSharePointServices_Site> -databasename <name of database that contains the orphan item>

  1. If the above command reveals any orhpaned sites, then run the above command with -deletecorruption parameter:

stsadm -o databaserepair -url http://<URL_of_WindowsSharePointServices_Site> -databasename <name of database that contains the orphan item that is to be deleted> -deletecorruption

[http://sharenotes.wordpress.com/2007/11/19/ deleting-purging-removing-orphaned-sites-or-site-collections/]

mod date: 2008-12-02T22:26:42.000Z