Remove-WebSitesSitePolicy

Remove-WebSitesSitePolicy

Removes a site policy.

Syntax

Parameter Set: Default
Remove-WebSitesSitePolicy [-PlanName] <String> [-ComputeMode] {Shared | Dedicated} [-SiteMode] <String> [-ConnectionString <String> ] [-PipelineVariable <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]


 

Detailed Description

The Remove-WebSitesSitePolicy removes a site policy. To add a site policy, use the New-WebSitesSitePolicy cmdlet.

Parameters

-ComputeMode<ComputeMode>

Specifies the compute mode. Valid values are:

-- Shared

-- Dedicated

The acceptable values for this parameter are:

 

Shared

 

Dedicated

 

 

 

Aliases

none

Required?

true

Position?

2

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

 

-ConnectionString<String>

Specifies a connecting string to a hosting database. If this parameter is not specified, the default instance of the hosting database is used.

 

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

 

-PipelineVariable<String>

Specifies a variable to be used with the pipeline operator.

 

Aliases

pv

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

 

-PlanName<String>

Specifies the name of a plan.

 

Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

 

-SiteMode<String>

Specifies the site mode. Valid values are:

-- Basic

-- Limited

 

Aliases

none

Required?

true

Position?

3

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

 

-Confirm

Prompts you for confirmation before executing the command.

 

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

 

-WhatIf

Describes what would happen if you executed the command without actually executing the command.

 

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

 

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters.

Examples

Example 1: Remove a policy

This command removes the policy named Plan01 with the compute mode of shared and site mode of basic.

PS C:\> Remove-WebSitesSitePolicy -PlanName "Plan01" -ComputeMode Shared -SiteMode Basic

 

Related topics

New-WebSitesSitePolicy

Get-WebSitesSitePolicy

Set-WebSitesSitePolicy