I have a site collection that is listed in Central Admin > Application Management > Site Collection list. When I click on the link there, no details are shown on the right hand side. The site collection was clearly deleted some time ago, but it seems the process didn't complete properly, and references to it still exist.
Using PowerShell I have established that this site collection is associated with a Content Database and obtained the GUID of the site collection.
ApplicationRightsMask : FullMask
ID : af9f1d5f-4fdd-4cc0-a1e8-c42969c3f4ef
SystemAccount :
Owner :
SecondaryContact :
GlobalPermMask : FullMask
IISAllowsAnonymous : False
Protocol : http:
HostHeaderIsSiteName : False
HostName : division
Port : 80
ServerRelativeUrl : /site/fim/BDSU
UpgradeRedirectUri :
Zone : Default
Url : http://division/site/fim/BDSU
Impersonating : False
Audit : Microsoft.SharePoint.SPAudit
AllWebs :
Features : {}
PortalUrl :
PortalName :
LastContentModifiedDate :
LastSecurityModifiedDate :
CatchAccessDeniedException : False
AllowUnsafeUpdates : True
UserToken : Microsoft.SharePoint.SPUserToken
IsPaired : False
SearchServiceInstance :
WebApplication : SPWebApplication Name=Division team sites Parent=SPWebService
ContentDatabase : SPContentDatabase Name=wss_fin2_isd Parent=SPDatabaseServiceInstance
Quota :
RootWeb :
LockIssue :
Usage :
ReadLocked :
WriteLocked :
ReadOnly :
WarningNotificationSent :
UserAccountDirectoryPath :
SyndicationEnabled :
AllowRssFeeds :
CertificationDate :
DeadWebNotificationCount :
RecycleBin :
ExternalBinaryIds : {}
CurrentChangeToken : 1;1;af9f1d5f-4fdd-4cc0-a1e8-c42969c3f4ef;634523580105300000;59055
WorkflowManager : Microsoft.SharePoint.Workflow.SPWorkflowManager
However, when I do stsadm -o enumallwebs -database wss_fin2_isd
I do not see the site listed at all.
When I try and delete the site using stsadm -o deletesite -url http://division/site/fim/BDSU -force -siteid af9f1d5f-4fdd-4cc0-a1e8-c42969c3f4ef -databasename wss_fin2_isd -databaseserver vsqlsp
I get a message saying I have to specify the URL or ID of the site collection which I clearly have.
stsadm -o databaserepair -url http://division/site/fim/BSDU -databasename wss_fin2_isd
I get the message <OrphanedObjects Count="0" />
I have also tried disconnecting and reconnecting the content database, but that has not removed the site collection.
I also tried deleting the site collection through powershell $sitecollection.Sites.Delete("http://division/site/fim/BDSU")
- no output is returned.
If I try to create the site through powershell I get the following output:
>$sitecollection.sites.add("http://division/site/fim/BDSU","admin","[email protected]")
Exception calling "Add" with "3" argument(s): "Another site already exists at
http://division/site/fim/BDSU. Delete this site before attempting to create a new site
with the same URL, choose a new URL, or create a new inclusion at the path you originally specified."
Anyone have any ideas about what else I can do to remove this site collection completely? I get a lot of errors relating to it, I think from Timer jobs that are picking up the reference to it from somewhere, but not sure where.