How to delete the large hiberfil.sys file on Windows - gHacks Tech News

How to delete the large hiberfil.sys file on Windows

If you do check your computer for large files that use lots of disk space chance is that you will come upon a file called hiberfil.sys on your main Windows drive eventually.

The file is hidden by default, but you can change that in the folder options. Some third-party programs display it directly, but if you browse Windows Explorer or another file manager, you may not spot it until you make the change and display operating system files by default.

The hiberfil.sys file has a size of several Gigabytes on modern computer systems. On a test system with 8GB of memory running Windows 8 it used about 6.6 Gigabytes of hard drive space.

Depending on how much free space that drive has available, it may be a lot. This has become more of an issue lately again with the rise of Solid State Drives of which many don't offer large storage capacities yet.

The file itself is used to hibernate the system. Whenever you use Hibernate on your computer, Windows takes a snapshot of the current session and saves it to disk. This includes the running programs, open documents, windows that are open and everything else of importance.


The main idea behind the feature is to speed up the loading of the session on next start. It was originally designed for mobile PCs such as laptops, but can also be used on desktop PCs.

The file may be as large as the total amount of RAM installed on the computer, but is usually less on modern systems thanks to compression used by those newer versions of Windows.

The file is large and while it has its uses especially on mobile devices, you may want to consider disabling the feature, especially if you are using a desktop PC and don't make use of it regularly or at all.

The best way to delete hiberfil.sys would be if you did not use Hibernation at all. The feature is enabled in most notebooks sold and can be easily deactivated. Go to Control Panel, choose Power Options, click on Hibernate and uncheck Enable hibernation.


If you disable Hibernate, the functionality is no longer available. You can switch to any other power state though, which means that shutdown and sleep mode are working just like before.

The only other effect is that you free up several Gigabytes of storage space on your hard drive as hiberfil.sys gets deleted in the process.

Disable Hibernate feature on newer versions of Windows

When you disable Hibernate, the hiberfil.sys file will be automatically deleted. To do this on newer versions of Windows, do the following:

  • Tap on the Windows key to bring up the start menu if you run Vista or Windows 7, or the Start Screen if you run Windows 8.
  • Type cmd.exe, hold down Ctrl and Shift, and click on the result.
  • This opens an elevated command prompt.
  • Type powercfg -h off

This turns off Hibernate on the system and will delete the large hiberfil,sys file on the PC as well freeing up space in the process.

If you need Hibernation simply run the same steps outlined above but use powercfg -h on instead as the command.

You will notice that Hibernate is no longer an option when you select shutdown on your system, but that should not be a problem if you never used it anyway or can live without it.

Update: With memory in modern computer systems increasing, so does the size of the Hibernation file in Windows. To avoid 8, 12 or even 16 Gigabyte Hibernation files Microsoft has introduced a compression feature into Windows 7 that is trying to keep the size of the file at a much lower level. Keep in mind though that Vista and XP do not support that new feature, and that you might see a very large Hibernation file as a consequence.

How to delete the large hiberfil.sys file on Windows
Article Name
How to delete the large hiberfil.sys file on Windows
The hiberfil.sys file is one of the largest files on a Windows system. This guide walks you through the steps of deleting the file, and explains the consequences of doing so.

We need your help

Advertising revenue is falling fast across the Internet, and independently-run sites like Ghacks are hit hardest by it. The advertising model in its current form is coming to an end, and we have to find other ways to continue operating this site.

We are committed to keeping our content free and independent, which means no paywalls, no sponsored posts, no annoying ad formats or subscription fees.

If you like our content, and would like to help, please consider making a contribution:


  1. wus said on November 28, 2007 at 6:33 am

    In my computer (or Windows XP russian edition) have not “Power options” and hibernate tabs. Your help not work

  2. I_Am_The_Man said on April 18, 2008 at 8:20 pm

    Thanks you so much… I have been looking for a way to clear up some extra HD space for my pc. This did the trick!

  3. skas said on July 23, 2008 at 3:11 pm

    Can’t we just adjuest the size of hiber.sys at all? I need my system to be hibernated every now and then. hiber.sys is taking 2GB of my HDD space. there should be a way around for it.

  4. Martin said on July 23, 2008 at 3:20 pm

    skas since it depends on the amount of RAM installed on your computer you cannot change that value.

Leave a Reply

Check the box to consent to your data being stored in line with the guidelines set out in our privacy policy

Please note that your comment may not appear immediately after you post it.