Removes a website
Uninstall-IisWebsite [-Name] <String> [<CommonParameters>]
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.
Name | Type | Description | Required? | Pipeline Input | Default Value |
---|---|---|---|---|---|
Name | String | The name or ID of the website to remove. |
true | false |
Uninstall-IisWebsite -Name 'MyWebsite'
Removes MyWebsite.
Uninstall-IisWebsite 1
Removes the website whose ID is 1.