How to Delete Hiberfil.sys and Reclaim Disk Space (Windows)

219

How to Delete Hiberfil.sys and Reclaim Disk Space (Windows)

What is hiberfil.sys (and why is it so big)?

hiberfil.sys is a system file Windows uses for Hibernate and (on many PCs) Fast Startup. It can take up several GB because it stores system state to speed up boot or resume.

Important: Don’t try to delete hiberfil.sys manually. Windows will often recreate it. The correct way to remove it is to disable Hibernate (and optionally Fast Startup).


Option 1 (Recommended): Disable Hibernate and remove hiberfil.sys

This works on Windows 11, Windows 10, Windows 8/8.1, Windows 7 (and older versions such as Vista).

  1. Open an elevated Command Prompt:
    • Press Start, type cmd
    • Right-click Command PromptRun as administrator
  2. Run this command:
powercfg /h off

That disables Hibernate and Windows should remove hiberfil.sys automatically.

What you lose: Hibernate option disappears, and Fast Startup may also be disabled on some systems.


Option 2: Keep Fast Startup, but shrink hiberfil.sys (Windows 10/11)

If you want Fast Startup but don’t care about full Hibernate, you can reduce the file size using “reduced” hibernation.

  1. Open Command Prompt (Admin)
  2. Run:
powercfg /h /type reduced

This typically makes hiberfil.sys smaller while still supporting Fast Startup.


Option 3: Set a custom hiberfil.sys size (Advanced)

You can limit the file size to a percentage of RAM (commonly useful on laptops with large memory). Run Command Prompt as admin, then:

powercfg /h /size 50

Note: Valid values depend on Windows version and configuration. If Windows rejects the number, try a higher percentage (for example, 60).


Option 4: Disable Fast Startup (but keep Hibernate available)

If you mainly want to stop the “hybrid shutdown” behavior, you can turn off Fast Startup while keeping Hibernate for occasional use:

  1. Open Control PanelPower Options
  2. Click Choose what the power buttons do
  3. Click Change settings that are currently unavailable
  4. Uncheck Turn on fast startup (recommended)
  5. Click Save changes

This may not delete hiberfil.sys entirely (Hibernate still needs it), but it can help if your goal is behavior rather than disk space.


How to turn Hibernate back on (and recreate hiberfil.sys)

If you ever want Hibernate back:

powercfg /h on

Quick checks (Optional)

See what sleep states your PC supports:

powercfg /a

Confirm whether the file exists (it’s hidden/system):

dir /a c:\hiberfil.sys

Troubleshooting

  • “Access is denied” → You didn’t run Command Prompt as administrator.
  • Hibernate option missing → It’s disabled (use powercfg /h on to restore it).
  • Fast Startup missing → Some systems hide it when Hibernate is disabled or due to policy/driver limitations.
Delete hiberfil.sys by disabling Windows Hibernate function
Delete hiberfil.sys by disabling Windows Hibernate function
4.5/5 - (2 votes)