Tuesday, 10 November 2015

Site collection with no associated content db

SharePoint 2013 presented me with another challenge today whereby I was unable to deleted a site collection through Central Admin or by using Remove-SPSite. Prior to the problem all I had done was provision a new content DB using PowerShell and and tried to create a new site collection using this new DB also using PowerShell. During the process it failed because of DB permissions.

In Central Admin the site collection was visible, but there was no DB associated and the button to delete was not active. Remove-SPSite just returned the following.
remove-spsite : <nativehr>0x80070003</nativehr><nativestack></nativestack>

A quick Google search quickly confirmed I was not the only one who had run into this issue. The quick and easy PowerShell solution is as follows:

No comments:

Post a Comment