It is probably something easy that I am not seeing, but I created a web application through powershell using the new-spwebapplication command which created an app pool based on the name provided. But I screwed something else up later in the script and wanted to start over. I was able to delete the Web Application through Central Administration, but I cannot get rid of the App Pool that it was assigned to. There are no other Web Applications on the box except the central administration web site. And the managed account says that the Farm component using this account is Microsoft SharePoint Foundation Application Pool: SharePoint - MySites (This is a SharePoint Server Standard installation).
So my question is: How do I list the Application Pools? and How do I remove an Application Pool for a web site; not a service application?