You cannot delete an application pool that contains applications. You need to reassign all applications in this application ...