Sharepoint 2013: How to Delete Orphan Sites

Sharepoint 2013: How to Delete Orphan Sites

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://SiteURL
Leave a Comment
  • Please add 2 and 5 and type the answer here:
  • Post
Wiki - Revision Comment List(Revision Comment)
Sort by: Published Date | Most Recent | Most Useful
Comments
  • Gokan Ozcifci edited Revision 1. Comment: Tag & title

  • Naomi  N edited Original. Comment: Minor edit

Page 1 of 1 (2 items)
Wikis - Comment List
Sort by: Published Date | Most Recent | Most Useful
Posting comments is temporarily disabled until 10:00am PST on Saturday, December 14th. Thank you for your patience.
Comments
  • Naomi  N edited Original. Comment: Minor edit

  • Gokan Ozcifci edited Revision 1. Comment: Tag & title

  • This article will benefit from See Also section, please add it

Page 1 of 1 (3 items)