PowerShell Logo Small

Remove-Website



This is the built-in help made by Microsoft for the command 'Remove-Website', in PowerShell version 3 - as retrieved from Windows version 'Microsoft Windows Server 2012 Standard' PowerShell help files on 2016-06-23.

For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.

SYNOPSIS

Removes an IIS Web site.

SYNTAX


Remove-Website [-Name] <String> [-Confirm [<SwitchParameter>]] [-WhatIf [<SwitchParameter>]] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


Removes a Web site from an IIS server.



<

RELATED LINKS


REMARKS

<

Examples


-------------- EXAMPLE 1: Removing a Web Site --------------

IIS:\>Remove-WebSite -Name TestSite



Removes the site named TestSite.