Is it safe to delete log file in C:\Windows\system32\LogFiles\Httperr

  • Questioner

    Files in C:\Windows\system32\LogFiles\Httperr folder growing very big and take a lot of space.

    DO anybody know whether it is safe to delete these files?

  • Answers
  • Tonny

    They are just logfiles so from a technical perspective you can throw they away (except for the most recent, which will probably in use).

    It possible though that because of compliance regulations or company policy you need to retain these for some period of time.

    Find out if that is the case and simply move the oldest to other media if needed.

    The logging behavior itself can be configured in the property panels of Internet Information Server. You can even switch it of altogether if you don't need the logs or move them to another location so they don't clog up your c: drive.

  • Area 51

    Yes it is safe to delete them, as they are just log files. But the fact that it's getting large means that it's storing a lot of errors from your IIS server, this is just something to be aware of.

  • Related Question

    windows - Safe to delete C:\drivers?
  • JB.

    Looks like a simple question right? But Googling does not reveal any definitive answers. I've got an aging laptop that I'm trying to free some space on and am wondering if anyone can tell me safe directories to remove on Windows XP.

    I'm a Unix guy so do not really know much about Windows...

  • Related Answers
  • cagcowboy

    Personally, I wouldn't.

    This folder almost certainly has various drivers that you'll need if you ever rebuild the system, and it's far easier to keep hold of them somewhere than to have to find them all again. At the very least burn them onto a CD before deleting from the HDD.

    (Plus I usually find that they're fairly small folders since drivers aren't usually that big... are you really going to save that much space?)

  • Steve Lacey

    Yup. Windows will copy them to where they're needed during installation.

    Presumably this directory was created by some "helpful" third party installer.

  • Jay Michaud

    Explanation of the Folder

    The location C:\drivers is very probably the path to which the original equipment manufacturer (OEM), such as Dell, HP, etc., copied all of the hardware drivers for your computer as installed at the factory. If this is the case, each subfolder of C:\drivers that contains a relevant *.inf file will be listed in the following location in the registry: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\DevicePath. When Plug and Play detects new hardware, it searches this list of locations for drivers. The selected driver is copied somewhere under the Windows folder, but it is recopied from the original location if you reinstall a driver.

    If you have a computer from a large vendor that keeps drivers available on its website for years, then you may delete this folder tree and just know that you will have to download any necessary drivers from the web in the future if needed. This could be problematic if you decide to reinstall Windows and Windows does not have a driver included that is compatible with your network card. (You need a network connection to get drivers from the Internet, but you need the drivers before your network card will work.)


    I recommend that you do not delete this folder tree. These drivers usually do not take up very much space. Instead, start by running the Disk Cleanup Tool. This tool checks for unnecessary temporary files, and it will suggest to you ways that you may free more disk space, such as uninstalling unused programs. On Windows XP, it is located at Start|All Programs|Accessories|System Tools|Disk Cleanup.

    If you still need more space, check the following locations; they usually have numerous files (some of them large) that can be deleted. The Disk Cleanup Tool may have already emptied some of these folders. (Note: Text enclosed in percent signs refers to an environment variable. To get a list of what these mean on your system, type the set command at a command prompt. Alternatively, type the environment variable with percent signs into Windows Explorer's address bar and press Enter to find the value of a particular variable.)

    • %TEMP% - Usually "C:\Documents and Settings\username\Local Settings\Temp" on Windows XP
    • %USERPROFILE%\Local Settings\Temporary Internet Files - %USERPROFILE% is usually "C:\Documents and Settings\username" on Windows XP. I just checked mine, and it has 15,113 files taking up 439 MB of disk space!
    • %SystemRoot%\$NtUninstall* - %SystemRoot% is usually "C:\Windows" on Windows XP. WARNING: Deleting these folders removes your ability to uninstall the Windows Updates to which they refer. Because each update bases its uninstall formula (stored in one of these folders) on the state of the system when it is installed, you should delete all of these or leave all of them. Don't just delete some and leave others. I just checked mine, and it has 4,639 files taking up 577 MB of disk space!

    Be sure to check the first two locations for each username's profile that is present on the machine.

  • Espo

    As you are using a ThinkPad/Lenovo T23 computer, this folder is safe to delete. They create this folder with all the IBM drivers so that if you have problems with your display driver or something, you can re-install the "factory default" driver from that folder.

    Also, when updates are downloaded, this is the default extraction folder. The folder will be re-created next time updates are downloaded and extracted.

    So, yes you may delete it if you need more space.

  • avstrallen

    Another significant space hog is \WINDOWS\ServicePackFiles, which contains a combined i386\ folder from any Service Packs installed on the machine. It's handy to have around in case of a rebuild (for the same reason as the \drivers folder you mention, see @cagcowboy, @Rydell), but if you're really stuck for space you can get rid of it without any immediate problems. If possible I'd go along with @cagcowboy's advice about archiving to a CD first...

    Also, anything in WINDOWS\ beginning $NtUninstall... (visible after turning on Show Hidden Files (Tools>Folder Options>View)) can go, if you don't need to uninstall the system updates that they refer to.

  • David

    The short answer is that it's probably safe to delete, but unless it's using up lots of space or otherwise posing a direct problem you shouldn't.

    The long answer is that any c:\drivers folder created is proprietary (it is not a folder defined by Microsoft or any other convention) - something (a driver, a Lenovo disk image, etc) has created this folder, and there are no guarantees about whether it is just a temporary folder, or if it is actually being used. I came across a number of sound card drivers in the W2k era that created that folder instead of installing to Program Files - deleting the folder would nuke the drivers and force you start in safe mode to repair the damage.

  • Jeff

    From a disk space perspective, you could move these files anywhere. But I would keep them.

    As everyone else has noted, they are simply some subset of the OS drivers to the various bits of hardware in your machine (printer, video, sound card, keyboard, mouse, power).

    They are extremely useful when you need to rebuild your machine. Although you can usually find them on the internet, it takes time slogging through the various vendor websites to do so.

    One last thing, I usually organize this directory in a way that makes sense to me. The hardware vendors choose some pretty random structures. I then move the whole structure to a place on the disk where it gets backed up with all my other documents.

  • jherlitz

    Dell is a common computer to create a c:\drivers directory. It always come from the factory like that. If you reload a computer and use the dell drivers disk and extract the drivers, it creates this folder and extracts them there.

    In the past when I needed to free up space on a computer that was a good directory to get rid of. However, make sure you have the Dell driver disk, OR copy that folder and all contents to another computer, thumb drive, or burn to a CD/DVD so you have the drivers later.

  • NightOwl888

    For Lenovo computers, the driver installation packages are available in 2 different forms:

    1. As a set of installation files ready for installation
    2. As a self-extracting executable that can be downloaded as a single file

    In the second case, the files have to be unpacked before the installer is run. The default location where they are unpacked to is C:\drivers\. Once they are installed, you no longer need the unpacked files and usually it is better to download the latest driver version if you intend to reinstall them than to keep around one that will almost certainly be out of date the next time you need it.

    So, in short, they are safe to delete (at least on Lenovo computers). In fact, if you download drivers from the Lenovo website, you should delete C:\drivers\ as soon as the installation is complete because those files are doing nothing more than taking up extra space.

    Some people here question the logic of deleting the files stating that they are usually quite small, and that it isn't worth the risk. But in my case, those unpacked files took up about 3GB of space! Considering that my total hard disk space is 750GB with less than 200GB allocated to the C drive, that is some valuable real estate to get back, especially when you consider that those files are literally providing no value (except maybe insurance in case Lenovo's site goes offline AND your computer needs to be rebuilt with the exact same OS you have now).

    Of course, if you are really that worried that Lenovo's site will go offline, you should be visiting the site every 6 months anyway and downloading the latest (self extracting) drivers for your computer(s) and storing them in a local archive somewhere, just in case.

  • vito78

    Yes, you can. Its back-up, maked by some driver back-up software. In case reinstalling Windows, all info on disc "c", will be deleted. So its no use to have back-up on disc "c". I suggest copy that to some other virtual or physic disc. It will speed-up your computer.