Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Delete hiberfil.sys to Disable Hibernate in Windows 10

· 5 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Disabling hibernate in Windows 10 and deleting the hiberfil.sys file can free up several gigabytes of disk space and stop the system from using the hibernation feature. This guide walks you through the process using Command Prompt as an administrator. You'll need to be logged in with an account that has administrative privileges.

What You'll Need

  • Administrative access to the Windows 10 PC
  • Basic comfort using Command Prompt

Step-by-Step

  1. Close all open programs and save your work. Disabling hibernate is a system-level change; it's a good idea to start from a clean state.
  2. Open Command Prompt as Administrator. Click the Start button, type cmd, right-click on “Command Prompt” in the search results, and select “Run as administrator.” If prompted by User Account Control, click “Yes.”
  3. Disable hibernation. In the Command Prompt window, type the following command and press Enter:
    powercfg /h off
    This command disables hibernation and automatically deletes the hiberfil.sys file from your system drive (usually C:).
  4. Verify the file is gone. To confirm the deletion, open File Explorer, go to the View tab, and check the “Hidden items” box. Then navigate to your C: drive (or the drive where Windows is installed). Look for hiberfil.sys. If you don't see it, the file was successfully removed.
  5. Check the disk space freed. Right-click on your C: drive in File Explorer and select “Properties” to see the updated free space. You should notice an increase roughly equal to the size of the old hibernation file (often 2–4 GB, but it can be larger depending on your RAM).
  6. Reboot your computer. Restart to ensure all changes are applied cleanly. After reboot, you can confirm that the Hibernate option is no longer available in the Power menu (Start > Power).

Common Mistakes

  • Not running Command Prompt as Administrator. If you run the command without admin rights, you'll get an error like “The parameter is incorrect.” Always right-click and choose “Run as administrator.”
  • Deleting hiberfil.sys manually. Some users try to delete the file directly in File Explorer. This doesn't work because the file is protected by the operating system. The powercfg /h off command is the correct way.
  • Forgetting that Fast Startup depends on hibernate. Windows 10's “Fast Startup” feature uses the hibernation file. Disabling hibernate will also disable Fast Startup, which may make booting slightly slower. This is a trade-off to be aware of.
  • Confusing sleep with hibernate. Disabling hibernate does not affect sleep mode. Sleep still works normally and uses a small amount of power to keep RAM active.

Tips

  • If you want to re-enable hibernate later, simply run powercfg /h on in an elevated Command Prompt. The hiberfil.sys file will be recreated automatically.
  • To reduce the size of hiberfil.sys instead of deleting it, you can set it to a smaller percentage of RAM. Run powercfg /h /type reduced to make the file about 40% of your RAM size. This still allows Fast Startup but uses less disk space.
  • If you have a laptop, consider whether you need hibernate for battery-saving. If you often close the lid and want to resume exactly where you left off, hibernate is useful. If you always plug in or use sleep, disabling it is fine.
  • Check for other large files after you free up space. Use Disk Cleanup (type “Disk Cleanup” in Start) to remove temporary files and system files to reclaim even more space.

Troubleshooting

The command returns an error. If you see “The parameter is incorrect,” it usually means you are not running Command Prompt as administrator. Double-check that you right-clicked and selected “Run as administrator.” If that doesn't help, try opening an elevated PowerShell (right-click Start > Windows PowerShell (Admin)) and run the same command.

hiberfil.sys still exists after the command. This can happen if the command didn't execute properly or if you have a hybrid shutdown setting that recreated the file. Run powercfg /h off again, then reboot. After reboot, check again. If the file persists, open Control Panel > Power Options > Choose what the power buttons do, and uncheck “Turn on fast startup” under Shutdown settings. Then run the command again.

The Hibernate option still appears in the Power menu. Even after disabling hibernate, the option may remain visible if you have a custom power plan. To remove it, go to Control Panel > Power Options > Choose what the power buttons do > Change settings that are currently unavailable. Uncheck “Hibernate” under Shutdown settings and click Save changes.

Disk space didn't increase as much as expected. The size of hiberfil.sys is typically 40–75% of your RAM. If you have 8 GB RAM, expect 3–6 GB freed. If you see less, the file might have already been reduced. Also, check that you are looking at the correct drive (the one with Windows installed).

Frequently Asked Questions

Is it safe to delete hiberfil.sys?

Yes, it is safe when done through the powercfg /h off command. The file is only used for hibernation and Fast Startup. Deleting it manually is not recommended because the system may recreate it or cause errors.

Will disabling hibernate affect my ability to use Sleep?

No. Sleep mode is separate from hibernate. Sleep keeps your RAM active and uses a small amount of power. Hibernate writes your session to disk and powers off completely. Disabling hibernate only removes the hibernate option and the file.

Can I still use Fast Startup after disabling hibernate?

No. Fast Startup relies on the hibernation file to save the kernel session. If you disable hibernate, Fast Startup will be disabled as well. Your PC will boot normally, which may take a few seconds longer.

How do I re-enable hibernate if I change my mind?

Open Command Prompt as Administrator and run powercfg /h on. This will recreate the hiberfil.sys file and re-enable hibernate and Fast Startup.

Why is hiberfil.sys so large?

By default, the file is sized to about 75% of your physical RAM to allow a full hibernation. If you have 16 GB RAM, the file could be around 12 GB. You can reduce it with powercfg /h /type reduced to about 40% of RAM.

Does deleting hiberfil.sys free up space immediately?

Yes, the space is freed as soon as the command completes. You don't need to reboot to see the space, but a reboot is recommended to ensure all processes are updated.