How to Delete Unused (Orphaned) Service Application App Pool in SharePoint 2010?

When you delete the Service applications, their Application Pools will not get deleted – They’ll become orphan/unused. So later when you create a new service application with same application pool, SharePoint will throw an error message: Application pool is already in use!

“An object of the type Microsoft.SharePoint.Administration.SPIisWebServiceApplicationPool named “Excel Service Application Pool” already exists under the parent Microsoft.SharePoint.Administration.SPIisWebServiceSettings named “SharePoint Web Services”. Rename your object or delete the existing object.”

how to delete application pools in sharepoint

In another case: An application pool already exists with the name specified

how to delete service application pool sharepoint 2010

So, How to delete the unused application pool? From IIS? Nope. IIS will not provide the interface for managing service application’s application pools. But we can delete the service application’s application pool in SharePoint 2010 using PowerShell.

Use this below cmd-let to get a list of service application’s application pools.
Get-SPServiceApplicationPool

SharePoint 2010 delete orphaned application pool:

To delete an application pool of service application, use the cmdlet: Remove-SPServiceApplicationPool

E.g. Remove-SPServiceApplicationPool -Identity <Orphaned Application Pool Name> 

How to Delete Unused Service Application App Pool in SharePoint 2010

Or the One liner could be: Get-SPServiceApplicationPool -Identity “name of the app pool” | Remove-SPServiceApplicationPool

Salaudeen Rajack

Salaudeen Rajack - Information Technology Expert with Two-decades of hands-on experience, specializing in SharePoint, PowerShell, Microsoft 365, and related products. He has held various positions including SharePoint Architect, Administrator, Developer and consultant, has helped many organizations to implement and optimize SharePoint solutions. Known for his deep technical expertise, He's passionate about sharing the knowledge and insights to help others, through the real-world articles!

One thought on “How to Delete Unused (Orphaned) Service Application App Pool in SharePoint 2010?

  • Perfect! Thanks for this post!

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *