Remove-WebSitesSite

Remove-WebSitesSite

Removes a tenant web site.

Syntax

Parameter Set: Default
Remove-WebSitesSite [-Name] <String> [-DeleteEmptyServerFarm] [-DeleteMetrics] [-Force] [-PipelineVariable <String> ] [-SkipDnsRegistration] [-Confirm] [-WhatIf] [ <CommonParameters>]


 

Detailed Description

The Remove-WebSitesSite cmdlet removes a tenant web site.

Parameters

-DeleteEmptyServerFarm

Indicates that the server farm associated with the site is removed if the server farm becomes empty.

 

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

 

-DeleteMetrics

Indicates that metering data is deleted.

 

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

 

-Force

Forces the command to execute without asking for user confirmation.                                  

 

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

 

-Name<String>

Specifies a name for the site.

 

Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

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

 

-SkipDnsRegistration

Indicates that DNS registration is skipped.

 

Aliases

none

Required?

false

Position?

named

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: Delete a tenant web site

This command deletes the site named Site01.

PS C:\> Remove-WebSitesSite -Name "Site01"

 

Related topics

New-WebSitesSite

Get-WebSitesSite

Set-WebSitesSite

Restart-WebSitesSite