Remove-WebSitesPolicy

Removes a website site policy.

Syntax

Remove-WebSitesPolicy [-PlanName] <String> [-ComputeMode] <ComputeModeOptions> [-SiteMode] <String> [-Confirm]
 [-RemoteSettings <RemoteSettings>] [-SuppressRequestIdLine] [-WhatIf] [<CommonParameters>]

Description

The Remove-WebSitesPolicy cmdlet removes a website site policy.

Examples

Example 1: Remove a policy

PS C:\> Remove-WebSitesPolicy -PlanName "Plan01" -ComputeMode "Shared" -SiteMode "Basic"
This command removes the policy named Plan01.

Parameters

-ComputeMode

Specifies the type of hosting environment that the web site runs in.
Valid values are:

- Shared. The web site runs in a shared/multi-tenant hosting environment.
- Dedicated. The web site runs in its own dedicated hosting environment.

For example:

-ComputeMode "Dedicated"

Type:ComputeModeOptions
Parameter Sets:Shared, Dedicated
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

-PlanName

Specifies the name of the website plan being deleted.
For example:

-PlanName "Standard"

Type:String
Required:True
Position:0
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

-SiteMode

Specifies the site mode of the policy that this cmdlet removes.
Valid values are:

- Basic. Used with the Shared, Basic, and Standard plans.
- Limited. Used with the Free plan.

For example:

-SiteMode "Limited"

Type:String
Parameter Sets:Basic, Limited, Dedicated
Required:True
Position:2
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

-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