Delete Hidden Web Application in SharePoint 2013 using PowerShell

Here in this SharePoint 2013 tutorial, we will discuss how we can delete hidden web application using PowerShell in SharePoint 2013/2016.

While creating “Power Pivot Service Application” I have encountered the below error message, but I couldn’t be able to see the application pool as part IIS physically. The error comes as:

Sorry, something went wrong.
An object of the type Microsoft.SharePoint.Administration.SPLisWebServiceApplicationPool named “Power Pivot Service Application” already exists under the parent Microsoft.SharePoint.Administration.SPLisWebServiceSettings names “SharePoint Web Services”. Rename your object or delete the existing object.

sharepoint 2013 delete hidden web application
sharepoint 2013 delete hidden web application

Though we can’t see the application entry as part of Application Pools.

Delete Hidden Web Application in SharePoint 2013 using PowerShell
Delete Hidden Web Application in SharePoint 2013 using PowerShell

Delete Hidden Web Application in SharePoint 2013 using PowerShell

We should say thank you for Microsoft for providing PowerShell command to delete the hidden Application pools.

Here are the commands for the same:
To list all the hidden Application pool(s):

"Get-SPServiceApplicationPool"

Delete the Application Pool(s)

Remove-SPServiceApplicationPool -Identity ""

Examples / Output:

Delete Hidden Web Application in SharePoint 2013 using PowerShell
Delete Hidden Web Application in SharePoint 2013 using PowerShell

You may like following SharePoint tutorials:

Once the application pool is deleted we can create the application pool with the same name.

Donwload Hub site pdf

Download SharePoint Online Tutorial PDF FREE!

Get update on Webinars, video tutorials, training courses etc.

>