Remove multiple website from IIS 7.5


I have a web server for shared webhosting purpose based on windows server 2008 R2 and IIS 7.5.
There are currently 450 websites in it IIS server. I want to remove all of the website from the server because this server has been gone out of production.
Is there any script in powershel to automate the deletion of 450 websites or I have to remove them one by one manually.


The Web Server (IIS) Administration Cmdlets in Windows PowerShell will help you here.

The following will remove all websites:

This won’t remove any files so that should be done separately.


Remove multiple website from IIS 7.5 by licensed under CC BY-SA | With most appropriate answer!

Leave a Reply