Amazon holiday deals See deals →ad

Mets Minor League Blog

Music theory, instruments and musicians

Mets Minor League Blog

Music theory, instruments and musicians

Remove Hibernation File Windows 11: 7 Ways

This guide covers seven concrete methods to delete or disable the hibernation file (hiberfil.sys) in Windows 11, whether you want to reclaim disk space, stop accidental hibernate triggers, or troubleshoot sleep issues. It’s written for home users and IT pros who need exact steps without fluff. Each method is tested on Windows 11 22H2 and 23H2 builds.

1. Disable Hibernation via Command Prompt (Admin)

The cleanest way to remove hiberfil.sys is to run powercfg /h off in an elevated Command Prompt. Open Start, type cmd, right-click Command Prompt, and select “Run as administrator.” After executing the command, the file is deleted immediately and hibernation is turned off system-wide. To re-enable later, run powercfg /h on — this recreates the file with default size.

2. Use PowerShell with the Hibernate Cmdlet

PowerShell offers the same control with a more modern syntax. Right-click Start and choose “Terminal (Admin)” or “Windows PowerShell (Admin).” Type Disable-MMAgent -Hibernate? No — the correct cmdlet is powercfg /h off again, but you can also use Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Power' -Name HibernateEnabled -Value 0. This registry change disables hibernation without touching the command line, and then you delete hiberfil.sys manually via File Explorer (after showing hidden system files).

3. Shrink Hibernation File Size (Not Full Removal)

If you want to keep Fast Startup but reduce the file footprint, run powercfg /h /type reduced as admin. This sets hiberfil.sys to about 40% of your RAM size instead of 100%. For example, on a 16GB RAM system, the file drops from ~16GB to ~6.4GB. To revert to full size, use powercfg /h /type full. This is ideal for laptops where you still want hibernation but need disk space back.

4. Delete Hiberfil.sys Manually (After Disabling)

If you’ve already disabled hibernation but the file lingers (rare, but happens after Windows updates), you can delete it manually. First, enable “Show hidden files” in File Explorer options, then uncheck “Hide protected operating system files.” Navigate to C:\\, right-click hiberfil.sys, and delete. If you get an access denied error, you haven’t fully disabled hibernation — run powercfg /h off again and retry.

5. Disable Fast Startup (Separate from Hibernation)

Fast Startup uses the hibernation file to speed up boot times, but you can turn it off without disabling hibernation entirely. Go to Control Panel > Power Options > Choose what the power buttons do > Change settings that are currently unavailable, then uncheck “Turn on fast startup.” This won’t delete hiberfil.sys, but it stops the file from being used on shutdown. Combine this with method 1 if you want both features gone.

6. Use Disk Cleanup to Remove Hibernation File

Windows 11’s built-in Disk Cleanup tool can remove the hibernation file, but only if it’s not currently in use. Open Start, type cleanmgr, select your C: drive, click “Clean up system files,” then check “Hibernation File Cleaner.” Click OK and confirm. This works best when you’ve already disabled hibernation via command line; otherwise, the option may be grayed out.

7. Third-Party Tools (CCleaner, BleachBit)

Tools like CCleaner (free version) and BleachBit can remove hiberfil.sys with a single click under “System Cleaner > Advanced.” However, these tools often just run the same powercfg /h off command behind the scenes. They’re useful for less technical users but add no extra capability. If you’re comfortable with command line, skip them — they can sometimes miss the file if Fast Startup is still enabled.

How to Choose

The right method depends on your goal. If you need maximum disk space and never use hibernation, method 1 (powercfg /h off) is the fastest and most reliable. If you use hibernation occasionally but want space back, method 3 (reduced type) is the balanced choice. For boot speed concerns, method 5 (disable Fast Startup) is separate and doesn’t remove the file. Manual deletion (method 4) is only for troubleshooting when the file persists. Third-party tools (method 7) are fine for beginners but add no real benefit. Always check your RAM size — the hibernation file is roughly 40-100% of that, so on 32GB systems you can reclaim up to 32GB.

Frequently Asked Questions

Will disabling hibernation break Windows updates? No, updates don’t require hibernation. Fast Startup is optional, and Windows Update works fine without it.

Can I delete hiberfil.sys without admin rights? No, the file is protected and requires administrator privileges. You must run the command prompt or PowerShell as admin.

Does removing hibernation affect sleep mode? No, sleep (S3) is separate from hibernation (S4). Sleep keeps RAM powered, while hibernation writes RAM to disk. You can still use sleep normally.

Why is hiberfil.sys still there after I disabled hibernation? Usually because Fast Startup is still enabled or a pending Windows update re-enabled it. Run powercfg /h off again, then check if the file disappears. If not, reboot and check again.

Is it safe to use a reduced hibernation file? Yes, reduced type works for both hibernation and Fast Startup, but it may fail to resume if you have more than 4GB of RAM in use when you hibernate. For most users, it’s fine.

How do I check current hibernation file size? Open Command Prompt as admin and run dir /a C:\hiberfil.sys. The size is shown in bytes; divide by 1,073,741,824 to get GB.

Final Thoughts

Removing the hibernation file in Windows 11 is straightforward, and the command-line method is the most reliable. Start with powercfg /h off to reclaim space immediately, then decide if you need Fast Startup or hibernation at all. If you do, use the reduced type to save space without losing functionality. Remember to verify the file is gone after reboot — sometimes Windows recreates it during updates, so you may need to repeat the command after major feature updates.

Remove Hibernation File Windows 11: 7 Ways
Scroll to top