hiberfil.sys and pagefile.sys: can you delete them on Windows 11?

Three large hidden system files often explain missing disk space. They are not junk: Windows uses them. You can change how big they are, but the right way is through Windows settings, not File Explorer.

Last updated: 2026-10-25

Short answer: Not from File Explorer: Windows uses these files. If you do not use hibernation, run powercfg /h off in an administrator terminal and Windows removes hiberfil.sys itself (this also turns off Fast Startup; powercfg /h on brings it back). Keep pagefile.sys system managed, because turning it off can make apps fail.

What each file does

hiberfil.sys stores the system state when the PC hibernates and is also used by Fast Startup. pagefile.sys is virtual memory that Windows uses when RAM is under pressure and for some crash information. swapfile.sys is used by modern apps. All three are in the root of the Windows drive and are hidden by default.

How much free space is left on drive C:?
Download Rain Cleaner (free)Free, no ads, Windows 10 / 11.

Why they are big

The hibernation file is typically a large fraction of your installed RAM, and the page file grows with how Windows manages memory. On a small SSD they can take many gigabytes.

Can you turn hibernation off?

Yes, if you do not use hibernation. Open Terminal as administrator and run powercfg /h off. This removes hiberfil.sys and also disables hibernation and Fast Startup. To bring it back, run powercfg /h on. If you want to keep it but make it smaller, powercfg /h /type reduced is an option on versions that support it.

What about the page file?

Leave it system managed unless you know why you are changing it. If you must adjust it, use Settings → System → About → Advanced system settings → Performance Settings → Advanced → Virtual memory. Turning the page file off can cause apps to fail or crashes to leave no information.

What not to do

Do not delete these files from File Explorer or with third-party scripts, and do not try to take ownership of them. Windows recreates or locks them, and forcing it can cause problems.

A better first step

Before changing system files, check the easier wins: temporary files, Windows.old, Windows Update Cleanup and large files you no longer need. See the related guides below.

Where Rain Cleaner fits

Rain Cleaner (Windows 10/11, 64-bit) shows what it found, with an explanation for each item, before it removes anything. The Free version has no ads; Pro has a free 7-day trial (no card). You can do everything in this guide with Windows alone.

Want a second opinion before deleting anything?Rain Cleaner shows what it found before cleanup, and you decide what goes. Free version without ads; Pro has a free 7-day trial, no card. Windows 10 / 11, 64-bit.Get Rain Cleaner →  ·  All guides →

Quick questions

Is it safe to delete hiberfil.sys?

Not from File Explorer. If you do not use hibernation, run powercfg /h off from an administrator terminal; Windows then removes the file itself.

Can I delete pagefile.sys?

Not by hand. Keep it system managed; turning it off can cause app failures or lost crash information.

Will turning off hibernation free disk space?

Yes, it removes hiberfil.sys, which is often several gigabytes. It also turns off hibernation and Fast Startup.

Read next

Download

Try it on your own machine.

Free version: no account, no subscription. Windows 10 and 11.