What is hiberfil.sys file? How to delete it in Windows 10 / 8 / 7 / XP


Hyberfil.sys is a file used to store the current state of the windows. As you put your PC in the hibernate mode, it restores all the files later when you need it. However, this occupies a huge space in your hard disk. If you are having space issues and you do not use the hibernation mode, then you can disable it from your system by following guidelines provided in this article.

What is hiberfil.sys?

Windows uses the hiberfil.sys in the hibernation mode in order to restore the system to its state where you left it. Hiberfil.sys is Windows system file.

Windows has two modes for the power management, one is Sleep mode and the other is the hibernation mode. In sleep mode, you leave your computer in a low power state and whenever you use it again you can resume the same work instantly.

However, in the hibernation mode the PC shuts the system completely and saves the memory into the hard drive and completely restores the same state as it is turned on again. In this way, power consumption is reduced and there is no need of completely rebooting the windows, but this file takes a significant space of the drive.

Hiberfil.sys is a Windows system file, so this file cannot be deleted. But, if you are not using hibernate mode, you can delete the hiberfil.sys file by following the steps mentioned in this article.

What is Hiberfil.sys

Why delete hiberfil.sys?

Though we do not recommend deleting it, But for certain reason you may need to delete this file. Like if you have limited space on your PC and because this file takes huge space on your hard drive then you have to delete this file.

By default, 75 percent of your RAM is occupied by this hidden file and it is stored in the C drive. The settings can be customized in the internet explorer, but if you want to delete it anyways, then there is no need to change the settings.

However, if you want to resize it, then open command prompt and enter the “powercfg.exe /hibernate /size 50” command and in this way the 75 percent occupied space will be reduced to 50 percent which is the minimum that can be obtained.

powercfg.exe /hibernate /size 50

How to check if hibernation is on?

Open the command prompt and check the directory list, if hiberfil.sys is mentioned in that list, this means that the hibernation mode is on. Or you can check from Windows Explorer in C drive and if you found hiberfil.sys it means it is enabled.

Go to the Settings → System → Power & Sleep. Click on the additional power settings. Click on the power plan to change the settings. See if hibernation is on or off for various provided settings.

How to disable or delete hiberfil.sys file on windows 10

  1. First, open command prompt with run as administrator.
  2. Once you are there, enter the following command powercfg.exe -h off. Press enter and then type exit. You may restart your computer now.

    powercfg.exe -h off

    You will notice when you click the shutdown option in the start menu, there will no ‘Hibernate Mode’ anymore. Besides, if you open the local disk C, you will see that hiberfil.sys file has been deleted. In addition, you will get back your space occupied by this file.

  3. To Enable it again you can type the command powercfg -h on and press enter.

    powercfg -h on


How to Disable hibernation

This method of disabling the hibernation mode can be applied to Windows 10, Windows 8, Windows 7.  Windows XP has little different method to turn off hibernation.

To Disable hibernation in Windows XP got to Control PanelSettingsPower Options. Click on hibernate tab and enable or disable the option here.


Q: Is it safe to delete hiberfil.sys

A: Yes it is safe to delete. As it is a system file so it will deny deleting it directly. To delete it you need to disable the hibernation option.

Q: Is it a virus?

No, this is not a virus file. But some time virus can infect the file itself. So it is always recommended keeping an antivirus in the system

Write your questions / experience in the below comment box.

Was this article helpful?

  1. Moe Adi says

    Hi, it didn’t work for me!
    the message I got: “Unable to perform operation. An unexpected error (0x65b) has occurred: Function failed during execution.”
    any recommendation please.

    1. Sdey says

      Run cmd in admin mode

      1. Joe says

        I’m trying to do it in pre boot cmd , it does not let you

        1. Somebody says

          Run it in admin PowerShell – works fine for me

    2. Tony Lorenzano says

      This didn’t work for me on windows 10 and I don’t see the term hibernate anywhere.
      It’s still tying up 3.5 gigs. I do have a lot on my google screen now–maybe that’s partly why.
      I can’t get rid of the disk space or pagefile.sys or swapfile.sys!

      1. Techexpert says

        Follow the below given steps to fix the pagefile issue.

        Remove paging & swap file from the process.

        1. Right-click on the My computer/This PC to go to the computer properties.
        2. Click on Advanced system settings
        3. Click on advanced tab and then click on setting which is under the performance section.
        4. In performance option click on advanced tab again.
        5. Click on change button
        6. Uncheck the check box of “Automatically manage paging file size for all drives”.
        7. Select the no paging file option and click on SET and then click on OK.
        8. It may ask you to reboot the computer, click on the reset button to take effect of these changes.

        After the restart, you may delete the pagefile.sys & swapfile.sys from the C: drive.
        After all, we suggest you to please scan your computer from a good anti-malware software to make sure there is no malware into your computer. We recommend Malwarebytes, Hitmanpro.

  2. Steve says

    The solution works perfectly! and YES, command prompt to be opened in admin mode (right click on the icon -> Run as Administrator). My 1.5GB pagefil.sys disappeared after restart.

  3. Felkyr says

    Thanks. This has been a huge problem on quite a small HDD.

  4. shanky says

    try to run command in administrator mode

  5. Steven F says

    Thank god for this article. Even after disabling all hibernation apps the hiberfil.sys was still there.
    Using the above method worked like a charm, but I really wanna know why it was even bloody there.
    It had bloated to 10GB!

  6. Nah Nood says

    Don’t need to reboot on win10 after turning it off, at least.

  7. poop says

    A tech support site where you can’t copy and paste… jeez. What idiot made that decision.

  8. Sciborg says

    Seriously…? You post a how-to article with CLI commands… and then disable copy-paste on the page? SERIOUSLY? What brain-donor thought that was a good idea?!?!?

    1. Techexpert says

      So sorry for the inconvenience, we just have fixed the copy issue. We have added code in copy-allow section, now you can copy easily.

    2. Me says

      Dude, SERIOUSELY? You are able to post this whiny and bitchy comment but you are unable to write down a simple command by yourself? Oh my goodness, what happened to humanity…

      1. a says

        “Dude, SERIOUSELY? You are able to post this whiny and bitchy comment but you are unable to write down a simple command by yourself?”

        I think you’re missing the point. I agree with Sciborg, randomly being denied basic functionality you expect is annoying.
        Reading through their java for fun, they’ve also disabled shortcuts such: F12 , ctrl+alt+i , etc in attempt to deny people loading dev tools… but anyone with half a brain can access them from the GUI of their browser anyway.

        I don’t think minorly inconveniencing people who want to rip-off their page is worth the cost of alienating a bunch of their regular users. It’s just a dumb move.

        1. Techexpert says

          Thank you for contacting us,
          We have added a copy option in front of all command lines, please check it again.

          TSA Team

          1. Johnathan Dongles III says

            Man, oh man! We sure do need to keep everyone from viewing our source code since this is the best-designed website on the net and we shouldn’t allow anyone to steal the script assets that we stole from elsewhere!

            Seriously though, guys…
            Why are you trying so hard to keep users from viewing source on your pages? You’re really doing nothing to deter actual experienced users from accessing it. All you’re doing is inconveniencing your less-advanced users and somewhat alienating what is quite probably the largest part of your user base.

            For your sake, I’d reevaluate your choice in attempting to block users from viewing your page source or run their respective browsers development kits. Also, I sincerely hope you’ve properly attributed all the scripts and DHTML you’re using on this site to their respective owners…

            …because if you haven’t, I’ll be spending the next few days pouring through your site looking for license infractions and notifying the appropriate owners/creators of all that code.

            Hope you guys understand!

  9. Morten Toft says


  10. Jay says

    Great stuff. worked perfectly!!

    1. Techexpert says

      Thank you!!

  11. gridsleep says

    Thank you. Most excellent advice.

  12. javedur rehman says

    how can delete all extra files

    1. Techexpert says

      Which files do you want to delete? Could you please provide the file names?

  13. rc glider says

    remember to run cmd with admin rights, or it will give you error.

  14. Tim Brown says

    Just a beware, if you have a battery back-up, the software (Powerchute in my case) will protest and advise that it wont be able to work properly.
    Perhaps a case of choosing between the frying pan and the fire?

Leave A Reply

Your email address will not be published.

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More

[fc id='2' type='slide' placement='right' button_color='#4488ee' font_color='white']Feedback[/fc]