What is the inetpub Folder in Windows 10?

If you’re using Windows 10, you might come across a folder named inetpub, especially if you’ve enabled certain components or features related to web servers. Let's explore what this folder is, its purpose, and whether it's safe to delete it.

What is the inetpub Folder?

The inetpub folder is automatically created on the C: drive when the IIS (Internet Information Services) web server is installed. This directory serves as the primary location for storing files associated with websites and is mainly used for hosting local websites and applications on the computer.

Main Directories in inetpub

Inside the inetpub folder, you’ll find several standard subdirectories:

  • wwwroot — the main folder where website files are stored, accessible by default through the web server. This is where you’d place HTML, CSS, JavaScript, and other files necessary for website functionality.
  • logs — this folder contains IIS log files, which record information about server requests, errors, and other events.
  • ftproot — a directory for storing FTP files, if you’re using the FTP server feature.
  • custerr — stores custom error pages that may be shown when a site encounters an error.

What is the inetpub Folder Used For?

The inetpub folder is where Windows stores web content if the IIS web server is running. It’s particularly useful for testing websites or applications locally before deploying them on the internet. IIS can be helpful for developers, webmasters, and server administrators who need a controlled environment to test their projects.

Can You Delete the inetpub Folder?

If you’re not using IIS and don’t need the inetpub folder, you can delete it. However, note that if IIS is active or installed as a component, the folder may reappear after the service restarts.

To fully disable IIS and prevent the inetpub folder from reappearing:

  1. Open Control Panel and go to Programs and Features.
  2. Select Turn Windows features on or off.
  3. Uncheck Internet Information Services (IIS).
  4. Confirm your changes and restart your computer.