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.

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.