We help IT Professionals succeed at work.

How to completely delete an IIS Web site and clean up everything.

Hi,

When I delete a web site in Windows IIS manager should I delete also the linked folder in wwwroot folder fo Windows? I wand to make everything is clean up.
Comment
Watch Question

Simple Geek from the '70s
GOLD EXPERT
Distinguished Expert 2019
Commented:
yes as in iis all you are doing is unlinking the location from the web server
System Admin
BRONZE EXPERT
Commented:
iis settings - go to sites just delete the site .

to delete the contents go to wwroot . delete the contents restart iis service  thats it

all the best
SILVER EXPERT
Distinguished Expert 2019

Commented:
What are you after?

Depending on e setup, you can create a new site pointing to a new folder where the new version of the site would go.
Scott FellDeveloper & EE Moderator
SILVER EXPERT
Fellow
Most Valuable Expert 2013
Commented:
If you have a dedicated app pool, double check it is gone when you remove the site.  Also, make sure to delete any logs associated with the site to.

Author

Commented:
So if I resume, the steps are:

- Delete the Web site in IIS
- Delete the application  ( If it used just for that web site)
- Delete the Web site folder in WWWROOT
-Delete the logs

Is that correct?
SILVER EXPERT
Distinguished Expert 2019

Commented:
Yes, but if the site included dlls deployed, they need to be. Unregistered, removed. Uninstalled.but you have to make sure the dlls deployed for one project which you might be removing, might be used by other projects on the server.

Removing things ......

There is different ways to achieve a fresh site/directory while retaining the ability to compare to ..

nit sure what you are trying to achieve,

certain changes, configuration adjustments will remain unless you have site implementation documents that you can reverse.

Author

Commented:
It's a home made application. I's not used anymore so I just want to remove everything
SILVER EXPERT
Distinguished Expert 2019
Commented:
Presumably, you made backups.

Deleting the site/virtual directory is sufficient for the site to stop working, though in your case, the start directory is within wwwroot so deleting that folder will further recover storage space and the deleting the custom application poll if any as suggested, and the log location folder to recover further storage space...

Author

Commented:
Thanks all!

Explore More ContentExplore courses, solutions, and other research materials related to this topic.