CmdID / PowerShell / Cmdlets / Remove
Remove-WebAppPool
Removes an application pool from IIS. Windows Server PowerShell reference
From the Windows Server PowerShell reference 3 parameters Its page in the reference
Parameters
-Confirm, -cfPrompts you for confirmation before running the cmdlet.-NameSpecifies the name of the application pool to remove.-WhatIf, -wiShows what would happen if the cmdlet runs.