You cannot delete an application pool that contains applications. In IIS, you must delete the applications or reassign all ...

You cannot delete an application pool that contains applications. In IIS, you must delete the applications or reassign all applications in this application pool to another application pool by editing the properties of each application. On the Home Directory tab, type the directory of a different application pool, and then delete the SharePoint Server application pool.