We show you how to safely remove the file, and explain why Windows puts it there in the first place.
What is hiberfil.sys?
Windows offers a couple of different modes to save power if you’re not using your PC for a while. Sleep is for short breaks, like grabbing a coffee, while Hibernate is for longer periods, maybe several hours or overnight. Both get your PC up and running faster than a complete restart, but they work in slightly different ways. Sleep is the quickest, due to the fact that all your current data in stored in the RAM, and the device jumps back into life as soon as you hit the power button. Hibernation is slower, as the information is written to the hard drive instead. This allows the PC to conserve more power, but in turn returns it to a usable state somewhat behind the zippier Sleep. Hiberfil.sys is the file where all of that information for Hibernate mode is stored. Depending on what you’re using on your PC this can actually grow to be several GBs in size, which can be a problem on storage-challenged modern devices.
So, is it safe to delete hiberfil.sys?
If you don’t use the Hibernate feature, then it’s perfectly safe to remove, although it’s not quite as straightforward as dragging it to the Recycle bin. Those who do use Hibernate mode will need to leave it in place, as the feature requires the file to store information. For other ways to conserve power, see our How to improve laptop battery life guide.
How do I delete hiberfil.sys?
To delete the hiberfil.sys file, open the Start Menu and type in Command Prompt. You’ll see the app listed at the top of the results. Now, this is the important bit, be sure to Right-Click on it. This will bring up a menu containing the option to Run as administrator. Select this.
You’ll need to agree to allow the app to make changes to your system, then a terminal window will appear. At the prompt, type the following command, including the spaces (but ignoring the italics). powercfg -h off
Press return, close down the terminal window, then go back to the place where you found hiberfil.sys and you should see that it has now departed. Should you wish to use Hibernate in the future, just repeat the steps above but replace off with on in the terminal window command. For other ways to make some room on your hard drive, be sure to also read our How to free up storage in Windows guide. Martyn has been involved with tech ever since the arrival of his ZX Spectrum back in the early 80s. He covers iOS, Android, Windows and macOS, writing tutorials, buying guides and reviews for Macworld and its sister site Tech Advisor.