Unfortunately we had a situation where an IISRESET was performed by one user whilst another was creating a site collection - now the site collection can't be deleted.
When I go to central administration and try to select the site collection for deletion, it doesn't select at all. Additionally when I try to view the site collection it only shows the name - not the database or site collection administrator. The ULS logs don't show any errors either.
I tried to do a database repair with stsadm both with and without the deletecoppuption flag but that hasn't resolved the issue:
PS C:\Users\<redacted>> stsadm -url http://sharepoint/services -o databaserepair
-deletecorruption -databasename WSS_Content
<OrphanedObjects Count="0" />
I've also tried deleting the site using stsadm, but that doesn't work either.
PS C:\Users\<redacted>> stsadm -o deletesite -url http://sharepoint/services
<nativehr>0x80070003</nativehr><nativestack></nativestack>
Additionally when I try to enum sites to get the id of the collection so I can delete with the force flag, I get an error:
PS C:\Users\<redacted>> stsadm -o enumsites -url http://sharepoint/services
<Sites Count="3"> <Site Url="http://sharepoint" Id="0c18620b-11b4-4660-a65e-e75eb75a11c2" Owner="i:0#.w |<redacted>" SecondaryOwner="i:0#.w|<redacted>" ContentDatab ase="WSS_Content" StorageUsedMB="18.1" StorageWarningMB="0" StorageMaxMB="0" /> <Site Url="http://sharepoint/projects" Id="1d517aa0-31bd-4a16-85b0-a32cb7d39aa7" Owne r="i:0#.w|<redacted>" SecondaryOwner="i:0#.w|<redacted>" ContentDatabase="WSS_Content" StorageUsedMB="1.9" StorageWarningMB="0" St orageMaxMB="0" /> **
<Site Error="<nativehr>0x80070003</nativehr><nativestack>< ;/nativestack>" />**
Remove-spsite yields the following error:
PS C:\Users\<redacted>> remove-spsite http://sharepoint/services
Confirm
Are you sure you want to perform this action?
Performing operation "Remove-SPSite" on Target "http://sharepoint/services".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help
(default is "Y"):y
remove-spsite : <nativehr>0x80070003</nativehr><nativestack></nativestack>
At line:1 char:1
+ remove-spsite http://sharepoint/services
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidData: (Microsoft.Share...mdletRemoveSite:
SPCmdletRemoveSite) [Remove-SPSite], DirectoryNotFoundException
+ FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletRemoveSi
te
I've no idea how this can be resolved... Help!?