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:
$site = Get-SPSite http://siteurl
$siteId = $site.Id
$siteDatabase = $site.ContentDatabase
$siteDatabase.ForceDeleteSite($siteId, $false, $false)
References:
http://blog.claudiobrotto.com/2013/deleting-a-site-collection-that-cannot-be-deleted/
https://peterheibrink.wordpress.com/2014/08/21/forcefully-delete-site-collection/
https://msdn.microsoft.com/en-us/library/hh323680(v=office.15).aspx?tduid=(ef781dacba28e2781c4bdf3ffd2cba40)(256380)(2459594)(TnL5HPStwNw-s7STYp2zFC.xMbOlk5rlOA)()
$siteId = $site.Id
$siteDatabase = $site.ContentDatabase
$siteDatabase.ForceDeleteSite($siteId, $false, $false)
References:
http://blog.claudiobrotto.com/2013/deleting-a-site-collection-that-cannot-be-deleted/
https://peterheibrink.wordpress.com/2014/08/21/forcefully-delete-site-collection/
https://msdn.microsoft.com/en-us/library/hh323680(v=office.15).aspx?tduid=(ef781dacba28e2781c4bdf3ffd2cba40)(256380)(2459594)(TnL5HPStwNw-s7STYp2zFC.xMbOlk5rlOA)()
No comments:
Post a Comment