Remove-WebSitesApplication

Removes a website web app.

Syntax

Remove-WebSitesApplication [-SiteName] <String> [-ApplicationName] <String> [-Confirm] [-PrefixMatch <Boolean>]
 [-RemoteSettings <RemoteSettings>] [-SubscriptionId <String>] [-SuppressRequestIdLine]
 [-WebSpaceName <String>] [-WhatIf] [<CommonParameters>]

Description

The Remove-WebSitesApplication cmdlet removes a website web app.

Examples

Example 1: Remove a web app

PS C:\> Remove-WebSitesApplication -SiteName "Site01" -ApplicationName "Application01"
This command removes the web app Application01 from the site Site01.

Parameters

-ApplicationName

Specifies the name of the web app being removed.
For example:

-ApplicationName "ContosoCalendar"

Type:String
Required:True
Position:1
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Required:False
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False

-PrefixMatch

{{Fill PrefixMatch Description}}

Type:Boolean
Required:False
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

-RemoteSettings

{{Fill RemoteSettings Description}}

Type:RemoteSettings
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-SiteName

Specifies the name of the site associated with the web app being removed.
For example:

-SiteName "ContosoInternal"

Type:String
Required:True
Position:0
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

-SubscriptionId

{{Fill SubscriptionId Description}}

Type:String
Required:False
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

-SuppressRequestIdLine

{{Fill SuppressRequestIdLine Description}}

Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-WebSpaceName

{{Fill WebSpaceName Description}}

Type:String
Required:False
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

-WhatIf

Shows what would happen if the cmdlet runs.
The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Required:False
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False