Removes a website
Remove-IisWebsite [-Name] <String> [<CommonParameters>]
Pretty simple: removes the website named Name
. If no website with that name exists, nothing happens.
Name | Type | Description | Required? | Pipeline Input | Default Value |
---|---|---|---|---|---|
Name | String | The name or ID of the website to remove. | true | false |
Remove-IisWebsite -Name 'MyWebsite'
Removes MyWebsite.
Remove-IisWebsite 1
Removes the website whose ID is 1.