PowerShell Logo Small

Remove-WebApplication



This is the built-in help made by Microsoft for the command 'Remove-WebApplication', in PowerShell version 3 - as retrieved from Windows version 'Microsoft Windows Server 2012 Standard' PowerShell help files on 2016-06-23.

For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.

SYNOPSIS

Removes a Web application from an IIS Web site.

SYNTAX


Remove-WebApplication [-Name] <String> [-Site <String>] [-Confirm [<SwitchParameter>]] [-WhatIf [<SwitchParameter>]] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


Removes a Web application from an IIS Web site.



<

RELATED LINKS


REMARKS

<

Examples


-------------- EXAMPLE 1: Adding a Web application and removing it --------------

IIS:\>New-WebApplication -Name TestApp -Site "Default Web Site" -PhysicalPath "$env:systemdrive\inetpub\TestApp" "Sleep for 5 seconds before
Web App is removed"; Sleep 5 Remove-WebApplication -Name TestApp -Site "Default Web Site"



This example demonstrates how to create a Web application named TestApp on the Default Web Site. The application is then removed after 5
seconds.