How to Reduce or Delete Pagefile.sys
In this article
To reduce or delete pagefile.sys, you open the Advanced System Settings, go to Performance Settings, and change the virtual memory size — or set it to “No paging file” to delete it. This frees up disk space and can reduce wear on an SSD, but Windows needs a pagefile for crash dumps and memory management, so most systems should keep a small one.
What You'll Need
- Administrator access to the Windows PC
- At least 5–10 GB of free space on the drive where the pagefile is located (so Windows can work while you make changes)
- A backup of important files (optional but recommended)
Step-by-Step
- Open System Properties. Press Win + Pause/Break (or right-click This PC > Properties). In the System window, click Advanced system settings on the left.
- Open Performance Options. In the Advanced tab of System Properties, under Performance, click Settings.
- Go to Virtual Memory. In the Performance Options window, switch to the Advanced tab. Under Virtual memory, click Change….
- Uncheck “Automatically manage.” At the top, uncheck Automatically manage paging file size for all drives. This unlocks the drive list below.
- Select the drive. In the list, click the drive that currently holds the pagefile (usually C:). The current size is shown below.
- Choose a new size or disable.
- To reduce: Select Custom size and enter a smaller Initial size and Maximum size. A common recommendation is 1.5 times your RAM for initial, and 3 times for maximum, but for most modern PCs with 8+ GB RAM, setting both to 1024–4096 MB is fine.
- To delete: Select No paging file and click Set. Windows will warn you that crash dumps won’t be written — click Yes.
- Click Set. After choosing an option, click the Set button to apply it to the selected drive. If you skip this, the change won’t take effect.
- Click OK on all open dialogs. Windows may prompt you to restart. Restart your PC to apply the changes.
- Verify the change. After restart, open File Explorer and check the drive. If you set “No paging file,”
pagefile.sysshould be gone. If you set a custom size, the file will be smaller.
Common Mistakes
- Setting “No paging file” on the system drive without having another drive with a pagefile. Windows will still need some virtual memory; if you delete it entirely, some programs may crash or Windows may show low-memory warnings. It’s safer to keep a small pagefile on another drive.
- Forgetting to click “Set” after changing the value — the change won’t apply.
- Not restarting — the pagefile is not resized until you reboot.
- Setting the initial size larger than the maximum — Windows will reject this or reset it.
- Deleting the pagefile manually — you can’t just delete the file in Explorer; it’s in use. You must use the virtual memory settings.
Tips
- Keep a small pagefile (e.g., 1024 MB) even if you have lots of RAM. Some applications and Windows features (like crash dumps) expect it.
- If you want to free space on your SSD, consider moving the pagefile to a secondary HDD instead of deleting it. That keeps the system stable while freeing space on the fast drive.
- Use “System managed size” if you’re unsure. Windows will adjust it automatically, which is fine for most users.
- Check your current pagefile usage before reducing it: open Task Manager > Performance > Memory and look at “Committed” vs. “Cached.” If you often see high usage, keep a larger pagefile.
- After making changes, run Disk Cleanup to remove leftover temporary files that might still occupy space.
Troubleshooting
If the pagefile.sys file is still there after setting “No paging file”:
- Make sure you restarted the PC. The file is removed during shutdown.
- Check if another drive has a pagefile. Windows may keep a small one on the system drive if no other drive has one.
- If you have multiple drives, set “No paging file” on all of them, then restart again.
If Windows won’t let you set “No paging file” on the system drive:
Windows requires at least one pagefile for crash dumps. You can set a small custom size (e.g., 1024 MB) instead of “No paging file.”
If you get a “Low on memory” error after reducing:
Increase the pagefile size back to a larger value (e.g., 4096 MB) or set it to “System managed size.” Also check if you have too many programs running.
If the pagefile is still large after setting a custom size:
Windows may have grown it beyond the maximum you set if the system needed more virtual memory. Wait a few minutes or restart, then check again. If it persists, set a higher maximum.
Frequently Asked Questions
Is it safe to delete pagefile.sys?
Yes, but not recommended. Windows can run without it, but you lose crash dump capability and may see performance issues under heavy memory load. It’s safer to keep a small pagefile.
How much space does pagefile.sys take?
By default, Windows sets it to 1.5 to 3 times your RAM, but it can grow. For example, with 16 GB RAM, it might be 24 GB. You can reduce it to a fixed size like 2 GB.
Can I move pagefile.sys to another drive?
Yes. In the virtual memory settings, select the new drive, choose “System managed size” or “Custom size,” and click “Set.” Then set the old drive to “No paging file” and restart.
Why is pagefile.sys so large?
Windows grows it as needed. If you have many programs open or little RAM, it expands. Setting a fixed maximum prevents it from growing beyond that.
Does deleting pagefile.sys speed up my PC?
Not really. It frees disk space, but it can actually slow down memory-intensive tasks. For SSDs, the pagefile is rarely a bottleneck.
Can I delete pagefile.sys without admin rights?
No. Changing virtual memory settings requires administrator privileges. You’ll need to log in with an admin account or provide admin credentials.