Quantcast
Channel: SharePoint 2010 - Setup, Upgrade, Administration and Operations forum
Viewing all articles
Browse latest Browse all 13778

Unable to delete an orphanned web application

$
0
0

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:

  1. Showing in Central Admin
  2. Corresponding IIS sites are gone
  3. Content DB is still there in database

How do I proceed?


Thanks, Soumya

Viewing all articles
Browse latest Browse all 13778

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>