Remove-WebSitesSite

Removes a website site.

Syntax

Remove-WebSitesSite [-Name] <String> [-Confirm] [-DeleteEmptyServerFarm] [-DeleteMetrics] [-Force]
 [-RemoteSettings <RemoteSettings>] [-SkipDnsRegistration] [-SuppressRequestIdLine] [-WhatIf]
 [<CommonParameters>]

Description

The Remove-WebSitesSite cmdlet removes a website site.

Examples

Example 1: Delete a website site

PS C:\> Remove-WebSitesSite -Name "Site01"
This command deletes the website site Site01.

Parameters

-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

-DeleteEmptyServerFarm

Indicates that the server farm associated with the site is also removed, provided that the removed site was the only site in the farm.

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

-DeleteMetrics

Indicates that metering data associated with the site is removed along with the site.

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

-Force

Forces the command to run without asking for user confirmation.

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

-Name

Specifies the name of the site being removed.
For example:

-Name "ContosoInternal"

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

-SkipDnsRegistration

Indicates that DNS registration is not carried out.

Type:SwitchParameter
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

-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