Uninstall-IisWebsite

Removes a website

Syntax

Uninstall-IisWebsite [-Name] <String> [<CommonParameters>]

Description

Pretty simple: removes the website named Name. If no website with that name exists, nothing happens.

Beginning with Carbon 2.0.1, this function is not available if IIS isn't installed.

Related Commands

Parameters

Name Type Description Required? Pipeline Input Default Value
Name String

The name or ID of the website to remove.

true false

EXAMPLE 1

Uninstall-IisWebsite -Name 'MyWebsite'

Removes MyWebsite.

EXAMPLE 2

Uninstall-IisWebsite 1

Removes the website whose ID is 1.