I just import a IIS config with 50 sites.
I will delete all of these sites several times to make new tests.
Currently I just delete them one by one...
I have not found how to select all sites to remove them in one hit.
You should be able to do:
To delete all of the sites, although I'm not sure. If it works it would be faster.
Learn more about piping appcmd here: http://blogs.iis.net/ksingla/archive/2007/06/17/things-you-can-do-by-piping-appcmd-commands.aspx
You can use the IIS
You can repeat the command in a script to delete specific website names whenever you run the script. Create a file called
Save the file, and then double-click it. That should delete the websites listed every time you run the script.
Here's a useful article on iis.net about using the
When installed on IIS 7.0 or later Web Deploy adds a context menu item to IIS manager called Deploy.
There are multiple actions available here one of which is the Delete action. There are two options depending on what node you have selected in IIS manager:
For more details...please check below link