I recently noticed the C:\inetpub folder on my laptop running Windows 7. I disabled Internet Information Services under windows services, but after rebooting, some of the options under that service were automatically turned back on. I don't have a web site, but okay.
What bothers me is that inetpub should not have been installed on my C: drive and should be somewhere in the Windows system folders, right?
So can I safely delete the c:\inetpub folder ?
31 Answer
So can I safely delete the c:\inetpub folder ?
The folder contains no system files. If you want to delete it, feel free, just be sure to verify it contains nothing you actually want to keep. I should point out that, unless you disable IIS and/or reconfigure IIS, IIS will simply create the folder again.
What you should do instead is modify the contents of %windir%\system32\inetsrv\config\applicationhost.config and simply make the required modifications so the desired path is used instead.
Source: Is it safe to delete the “InetPub” folder?
1