I tried to delete a web app from Central Admin. It raised an error. The IIS website got deleted. But the clontent db and the reference to the web app did not get removed from the Central Admin. Since then, I have been trying to delete this via powershell with the following being reported:
Get-SPWebApplication http://myWebAppURL | Remove-SPWebApplication
Remove-SPWebApplication : An object in the SharePoint administrative framework, "SPWebApplication Name=myWebAppName", could not be deleted because other objects depend on it. Update all of these dependants to point to null or different objects and
retry this operation. The dependant objects are as follows:
At line:1 char:79
+ Get-SPWebApplication myWebAppURL | Remove-SPWebApplication <<<<
+ CategoryInfo : InvalidData: (Microsoft.Share...PWebApplication:SPCmdletRemoveSPWebApplication) [Remove-
SPWebApplication], InvalidOperationException
+ FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletRemoveSPWebApplication
Since it does not show what the dependent object is, I have no way of knowing what it is. I don't see any pending timer job for this web application.
To summarize, the web app is:
- Showing in Central Admin
- Corresponding IIS sites are gone
- Content DB is still there in database
How do I proceed?
Thanks, Soumya










