Delete hiberfil.sys If You Don't Use Windows Hibernate?
In this article
Yes, you can safely delete the hiberfil.sys file if you never use Windows Hibernate, but you shouldn't delete it manually—you should disable Hibernate through the Command Prompt or Power Options, which removes the file automatically. This frees up disk space equal to roughly 40% of your RAM (for example, 8 GB of RAM means about 3.2 GB freed).
What Is hiberfil.sys?
hiberfil.sys is a hidden system file that Windows creates at the root of your system drive (usually C:\) when Hibernate is enabled. It stores a compressed snapshot of your RAM when your PC enters Hibernate mode, allowing you to shut down completely and later resume exactly where you left off. The file is created at the moment you first enable Hibernate and is updated each time you hibernate.
By default, the file is sized at about 40% of your physical RAM, but Windows can adjust it up to 100% if you enable Fast Startup (which uses the same file) or if your system has specific driver requirements. For a typical 16 GB RAM system, the file can occupy 6–8 GB of disk space—significant on smaller SSDs.
How Hibernate Works (and Why the File Exists)
Hibernate is a power-saving state that saves your open documents, running apps, and system state to the hard drive, then powers off completely. Unlike Sleep, which keeps RAM powered, Hibernate uses zero power. When you turn the PC back on, Windows reads the snapshot from hiberfil.sys and restores your session.
The file is also used by Fast Startup, a feature enabled by default on many Windows 10 and 11 installations. Fast Startup hibernates the kernel session (not your open apps) to speed up boot times. If you disable Hibernate, Fast Startup is also disabled, which may make booting slightly slower.
How to Delete hiberfil.sys (Properly)
You cannot delete hiberfil.sys by right-clicking and choosing Delete—it's protected by the operating system. The correct method is to disable Hibernate entirely:
- Open Command Prompt as Administrator (search for “cmd”, right-click, and select “Run as administrator”).
- Type the following command and press Enter:
powercfg /h off - Wait for the command to complete. Windows will remove the file automatically.
- Check that the file is gone by navigating to C:\ and looking for
hiberfil.sys(you may need to enable “Hidden items” in File Explorer options).
If you want to re-enable Hibernate later, run powercfg /h on in the same Command Prompt. The file will be recreated.
Should You Delete It? Pros and Cons
Deleting hiberfil.sys is beneficial if you never use Hibernate and you need more free space. The main advantage is reclaimed disk space, which is especially valuable on small SSDs (128 GB or less). A secondary benefit is that Fast Startup is disabled, which some users prefer because Fast Startup can occasionally cause driver or boot issues.
However, there are downsides:
- No Hibernate: You lose the ability to hibernate your PC. If you often close the lid on a laptop and expect it to resume later, you'll need to use Sleep instead (which uses a small amount of power) or shut down completely.
- Slower boot: Fast Startup is disabled, so cold boots may take a few seconds longer.
- No “Hybrid Sleep”: Some systems use a hybrid of Sleep and Hibernate; that will stop working.
If you have plenty of free disk space and you like Hibernate, there's no need to delete it. The file is harmless when left alone.
Common Problems After Disabling Hibernate
Some users report issues after running powercfg /h off:
- Sleep option disappears: This is rare, but on some systems disabling Hibernate also removes the Sleep option from the Power menu. You can re-enable Sleep by going to Control Panel → Power Options → Choose what the power buttons do, and checking “Sleep” under shutdown settings.
- Fast Startup is still on: If you disabled Hibernate but Fast Startup remains enabled in Control Panel, it won't work because the file is gone. You can turn it off manually in the same Power Options menu.
- File still visible: If
hiberfil.sysis still there after the command, it may be because Fast Startup is still enabled. Turn it off, then repeat the command.
Alternatives to Deleting hiberfil.sys
If you want to keep Hibernate but reduce the file size, you can set a custom size using the command:
powercfg /h /type reducedThis makes hiberfil.sys about half its normal size (roughly 20% of RAM), but it disables Fast Startup. To restore the full size, use powercfg /h /type full.
Another alternative is to move the file to another drive, but this is not officially supported and can cause boot issues. Stick with the built-in options.
Frequently Asked Questions
Is it safe to delete hiberfil.sys?
Yes, as long as you use the proper command (powercfg /h off), it's completely safe. The file is only needed for Hibernate and Fast Startup. Deleting it manually is not possible, so using the command is the only way.
Will deleting hiberfil.sys speed up my PC?
Not directly. It frees disk space, which can help if your drive was nearly full, but it won't make your CPU or RAM faster. In fact, boot times may increase slightly because Fast Startup is disabled.
How much space will I free up?
Typically 40% of your installed RAM. For example, if you have 16 GB RAM, you'll free about 6.4 GB. If you used the “reduced” mode, it would be about half that.
Can I delete hiberfil.sys without disabling Hibernate?
No. The file is recreated automatically whenever you hibernate. You can only remove it temporarily by disabling Hibernate, then re-enabling it later—but the file will be recreated.
Does hiberfil.sys slow down my SSD?
Not significantly. The file is written only when you hibernate, which is infrequent. It does consume disk space, but it doesn't affect everyday read/write performance.
What happens if I delete it while Hibernate is enabled?
You can't delete it while it's in use. If you try to force-delete it (e.g., with a bootable USB), Windows will recreate it on the next boot. This can also cause a “hiberfil.sys is corrupted” error, so it's not recommended.