Use Caution

pagefile.sys

Quick Answer: The Windows virtual memory paging file. Deleting it manually can cause system crashes and out-of-memory errors.

Bottom Line: Do not delete pagefile.sys manually. If you desperately need the space, you can shrink or disable it safely through Windows settings, though doing so is risky if you have low RAM.

What is pagefile.sys?

Located in the root of your C:\ drive (and hidden by default), pagefile.sys acts as Virtual Memory for Windows.

When your computer runs out of physical RAM (memory) because you have too many Chrome tabs or heavy apps open, Windows uses this file as “fake RAM.” It temporarily moves data from your physical memory into pagefile.sys on your hard drive to prevent your computer from crashing. The size of this file is usually managed automatically by Windows and fluctuates based on how much RAM your system has.

Can you delete it?

⚠️ Use Caution. You cannot delete it like a normal file because it is constantly in use by Windows.

If you somehow manage to bypass Windows protections and delete it, your computer will immediately crash the next time it runs out of physical RAM, resulting in lost work and a Blue Screen of Death (BSOD).

How to safely shrink or disable it

If pagefile.sys is taking up 16GB of space and you have plenty of physical RAM (e.g., 32GB or 64GB), you can manually reduce its size or disable it.

  1. Press the Windows key, type Advanced system settings, and press Enter.
  2. Under the Performance section, click Settings.
  3. Go to the Advanced tab and click Change… under Virtual memory.
  4. Uncheck Automatically manage paging file size for all drives.
  5. Select your C: drive.
  6. Choose Custom size (to shrink it) or No paging file (to disable it).
  7. Click Set, then OK, and restart your computer.

What happens after you disable it?

You will instantly recover several gigabytes of storage space. However, if your computer ever actually runs out of physical RAM, programs will begin crashing immediately without warning. We highly recommend setting a small “Custom size” (e.g., 2048 MB) rather than disabling it completely.

Discussion

Loading authentication...

Related in windows

Chia Blockchain Mainnet Database (~/.chia/mainnet/db)

The Chia mainnet db folder stores full node blockchain blocks (blockchain_v2_mainnet.sqlite). Deleting forces re-sync.

Use Caution

How to Force Delete a Locked File or Folder in Windows 11 / 10

Fix 'The action cannot be completed because the file is open in another program' with Command Prompt, PowerShell, and Task Manager.

Safe to Delete

Why Is My Hard Drive Full But No Files Are Showing? (Hidden Bloat Solved)

Fix hard drives that appear full despite selecting all files showing low storage. Discover hidden shadow copies, System Volume Information, and pagefiles.

Safe to Delete
Back to all files