Saturday, 13 August 2011

Delete corrupted site collection from config database sharepoint 2010


To delete orphaned site collections or lists or any other object in your SharePoint configuration database you can use the deletesite stsadm command. For e.g. to delete a site collection “http://server_name/sites/site_name” from a database server named DS1 and a database name called DB1, perform the following steps:

Use the enumallwebs operation to find the site whose URL matches “/sites/site_name”. Its parent site collection XML tag (that is, the Site tag) should have an InSiteMap attribute that has a value equal to False. A value of False means this site collection is orphaned.

Use the value of the Id attribute from the matching Site tag and use it as the value of the siteid parameter of the deletesite operation.

For example:

stsadm -o deletesite -force -siteid {GUID} -databaseserver DS1 -databasename DB1

Ads by Google

No comments:

Post a Comment