CmdID / PowerShell / Cmdlets / Remove
Remove-WebApplication
Removes a web application from an IIS website. Windows Server PowerShell reference
From the Windows Server PowerShell reference 4 parameters Its page in the reference
Parameters
-Confirm, -cfPrompts you for confirmation before running the cmdlet.-NameSpecifies the name of the application to remove from the site.-SiteSpecifies the name of the site from which this cmdlet removes the application.-WhatIf, -wiShows what would happen if the cmdlet runs.