Don't delete pagefile.sys directly; Windows needs it. If space is tight, leave it on System managed size and free space elsewhere, or move it to another fast drive via Advanced system settings → Performance → Advanced → Virtual memory.

What pagefile.sys actually means

When apps need more memory than your RAM holds, Windows moves less-used data to pagefile.sys on the system drive. It’s also where a memory dump is written during a blue screen, which helps troubleshooting.

Turning the page file off can cause “out of memory” errors and crashes even on PCs with lots of RAM, because some apps expect it to exist. Windows sizes it automatically based on RAM and usage.

Symptoms

  • A large hidden file called pagefile.sys in the root of C:.
  • Low disk space with pagefile.sys among the largest files.
  • “Your system is low on virtual memory” warnings.

What causes pagefile.sys

  • Normal virtual memory use: Windows sizes it automatically.
  • Lots of memory-hungry apps or many browser tabs.
  • Crash dump settings that require a larger page file.

Try these fixes

  1. Leave it system-managedPress Win+R, run sysdm.cpl → Advanced → Performance Settings → Advanced → Virtual memory → Change, and tick Automatically manage paging file size.
  2. Free space elsewhereUse Settings → System → Storage → Cleanup recommendations and Storage Sense.
  3. Move it if neededIn the same Virtual memory window, untick automatic, select another fast drive, choose System managed size → Set, then set C: to No paging file (or a small size) and restart.
  4. Fix low virtual memory warningsClose memory-heavy apps, check for memory leaks in Task Manager, and make sure the page file isn't disabled.
How to confirm the fix: Virtual memory shows a page file on a drive with free space and low-memory warnings stop.

Avoiding it in future

Keep at least 15% free space on the system drive and leave the page file on automatic.