In this post we will discuss how we can delete an application pool using PowerShell in SharePoint.
Also you can check out:
PowerShell is the best way to remove an application pool for SharePoint. Sometimes you may need to remove unused application pool accounts.
Follow below steps:
Open SharePoint 2013 management PowerShell, Make sure you are running as administrator mode.
Run the below command which will display all the application pools.
Then run the below command to get the particular Application Pool.
Get-SPServiceApplicationPool -Identity <Name of the application pool>
Now we can to delete what ever the application pool we want.
Remove-SPServiceApplicationPool 'Name of the Application Pool'
The above command will delete the application Pool.