Sunday 28 July 2013

How to delete orphan sites in Sharepoint 2013

Hi,

Recently an issue was reported to me where my site admins were unable to remove a reference to an orphan site collection in sharepoint 2013. Here are some details of this site collection:

> This site was inaccessible.
> This site was present in central admin --> View all site collections.
> This site was not selectable although viewable in central admin --> delete site collection
> In content database in the table Allsites the field "Delete" was marked as 1 for this site collection
> Remove-SPSite was throwing exception.

To fix this issue we followed a series of steps very similar to Sharepoint 2007.
>We detached this content database from central admin
> The following powershell command was executed to attach it back
Mount-SPContentDatabase "<ContentDb>" -DatabaseServer "<DbServer>" -WebApplication http://SiteName

Thats it and this issue was resolved.

Thanks,
Rahul Rashu

No comments:

Post a Comment