![]() NAME Remove-WebVirtualDirectory SYNOPSIS Removes an IIS virtual directory. SYNTAX Remove-WebVirtualDirectory [-Site DESCRIPTION Removes an IIS virtual directory. PARAMETERS -Site The name of the site that hosts the virtual directory to remove. Required? false Position? named Default value Accept pipeline input? true (ByPropertyName) Accept wildcard characters? false -Application The name of the application that hosts the virtual directory. Required? false Position? named Default value Accept pipeline input? true (ByPropertyName) Accept wildcard characters? false -Name The name of the virtual directory to remove. Required? true Position? 1 Default value Accept pipeline input? true (ByPropertyName) Accept wildcard characters? false -WarningAction Required? false Position? named Default value Accept pipeline input? false Accept wildcard characters? false -WarningVariable Required? false Position? named Default value Accept pipeline input? false Accept wildcard characters? false -WhatIf Describes what would happen if you executed the command without actually executing the command. Required? false Position? named Default value Accept pipeline input? false Accept wildcard characters? false -Confirm Prompts you for confirmation before executing the command. Required? false Position? named Default value Accept pipeline input? false Accept wildcard characters? false This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer and OutVariable. For more information, type, "get-help about_commonparameters". INPUTS OUTPUTS NOTES -------------- EXAMPLE 1: Removing a virtual directory -------------- C:\PS>Remove-WebVirtualDirectory -Site "Default Web Site" -Application "testApp" -Name testVirtualDir Removes the virtual directory named "testVirtualDir" from the Default Web Site. RELATED LINKS |