Remove-WebSitesPolicy

Removes a website site policy.

Syntax

Remove-WebSitesPolicy
      [-PlanName] <String>
      [-ComputeMode] <ComputeModeOptions>
      [-SiteMode] <String>
      [-RemoteSettings <RemoteSettings>]
      [-SuppressRequestIdLine]
      [-WhatIf]
      [-Confirm]
      [<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
Accepted values:Shared, Dedicated
Position:1
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:False
Required: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
Position:0
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-RemoteSettings

{{Fill RemoteSettings Description}}

Type:RemoteSettings
Position:Named
Default value:None
Required:False
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
Accepted values:Basic, Limited, Dedicated
Position:2
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-SuppressRequestIdLine

{{Fill SuppressRequestIdLine Description}}

Type:SwitchParameter
Position:Named
Default value:None
Required:False
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
Position:Named
Default value:False
Required:False
Accept pipeline input:False
Accept wildcard characters:False