Are you getting the error message: There was an error while performing this operation. Details: Application pool “<name>” cannot be deleted because it contains 1 applications?
The only way I could figure out how to delete it was using Powershell.
Here are the Powershell commands:
- import-module WebAdministration
- ls *optional* This just shows you the AppPools folder exists
- cd AppPools
- del *name_of_Web_Pool*
- Will ask you if you really do want to remove the App Pool. “Hit A for “Yes to all”.
- ls – This will allow you to verify the AppPool is gone.
You can now go back into IIS and verify that the AppPool is no longer there!