Remove-WebSitesSite

Removes a website site.

Syntax

Remove-WebSitesSite
      [-Name] <String>
      [-DeleteMetrics]
      [-DeleteEmptyServerFarm]
      [-SkipDnsRegistration]
      [-Force]
      [-RemoteSettings <RemoteSettings>]
      [-SuppressRequestIdLine]
      [-WhatIf]
      [-Confirm]
      [<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.

Required Parameters

-Name

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

-Name "ContosoInternal"

Type:String
Position:0
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

Optional Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

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

{{Fill RemoteSettings Description}}

Type:RemoteSettings
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-SkipDnsRegistration

Indicates that DNS registration is not carried out.

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

{{Fill SuppressRequestIdLine Description}}

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