How to delete, move and resize pagefile.sys (2023)

Learning how to delete, move and resize pagefile.sys can come in super handy if storage space is running low. There's no denying that Windows 10 can be super resource intensive and sometimes the capacity provided by your physical RAM (Random Access Memory) just isn't insufficient to hold every running program and process.

While it's not anywhere near as efficient as the best RAM, Microsoft's clever paging file (known as pagefile.sys.) is a handy workaround that will hold any data that your RAM can't and prevent your system from crashing when resources are running low.

Windows 10 is configured by default to automatically manage the paging file – so you if you have the best computer or the best Windows laptop, you may not have even noticed that it's there. And that's been done for good reason - to avoid tampering.

But while it may not be easily visible, if you need to free up some space on your drive or improve system efficiency even further, you can transfer pagefile.sys to one of the best external hard drives or set a size limit.

If you're working with programs that take up a lot of processing power and you're looking to lighten the load on the working memory, pagefile.sys. is well worth considering. It's worth noting though that accessing the page file is slow and if you're moving over large quantities of data there can be a significant drop in performance.

Still, knowing how to delete, move and resize pagefile.sys can be well worth it and we walk you through everything you need to know below. Before you begin, please take the time to read our advice on deleting the file (ie: don’t) and make sure to backup your PC before you make any changes.

Is pagefile.sys safe to delete?

When it comes to how to delete, move and resize pagefile.sys, there's an important consideration to address before proceeding. Because pagefile contains important information about your PC state and running programs, deleting it could have serious consequences and tank your system’s stability. Even if it takes up a large amount of space on your drive, pagefile is absolutely necessary for the smooth operation of your computer. This is exactly why pagefile.sys is hidden by default on Windows 10.

If you choose not to heed our warning and are determined to delete pagefile.sys, follow the steps to view protected system files in Windows 10.

How to delete pagefile.sys

If you believe your pagefile.sys has become corrupted or is causing other system problems, you can choose to delete it although it is not recommended.

(Video) How to delete and clear pagefile.sys | Windows 10

Follow the steps below to locate and delete the file. We'll also show you how to run a backup of your Windows 10 system in case deleting causes further issues.

In order to delete pagefile.sys you first need to be able to view it.

To get started you firstly need to be able view pagefile.sys. Open the file explorer and navigate to the C: Drive.

Press Control + F1 to enable the ribbon menu. Click on 'view' andthen 'Options'. A drop down menu will appear.

Click 'Change folder and search options'. In the new window which appears, click the 'view' tab and then uncheck 'Hide protected system operating files (Recommended)'.

Next, check the radio button 'Show hidden files, folders, and drives', then click 'Apply'. Pagefile.sys will now be visible.

How to delete, move and resize pagefile.sys (1)

2. Backup your files

Close and save any files you have open. If you've never backed up your files before, you can do so using Windows 10 dedicated tool. You can find this under 'Settings' and >'Update and security'.

You'll need a dedicated external hard drive to store your backups. Make sure that it's capacity is at least as large as the drive inside your machine.

(Video) How to Delete Pagefile sys file in Windows 10

Once you are ready to proceed with your backups, follow the step on the Micorosoft website (https://support.microsoft.com/en-ie/help/17143/windows-10-back-up-your-files (opens in new tab)) to safeguard your data.

How to delete, move and resize pagefile.sys (2)

3. Delete pagefile.sys

Right click on pagefile.sys and choose 'Delete'. If your pagefile is particularly large, the system may have to delete it immediately without sending it to the Recycle Bin. Once the file has been removed, restart your PC.

How to move pagefile.sys

We've walked you through the 'delete' portion of this how to delete, move and resize pagefile.sys guide, so now it's time to address the second part - moving it. By default. pagefile.sys is around 12GB in size. However, this will vary depending on how many resources your PC uses and the amount of physical RAM it has.

To save on precious hard drive space, you can move pagefile.sys to an external drive. This may increase your system speed depending on the type of disk e.g. an SSD and access speeds e.g. via USB 3.0. Whichever drive you use, make sure it is formatted to NTFS, which can handle larger file sizes.

How to delete, move and resize pagefile.sys (3)

1. Access Advanced settings

In Windows 10 open 'Control Panel'. Select the Windows icon at the bottom left of your desktop and enter the word "Advanced". Next, choose 'view advanced system settings'. In the 'Performance' section click 'Settings'.

In the new window which opens, click the 'Advanced' tab. Find the section named 'Virtual Memory' and click 'Change'.

(Video) How to Delete and Clear pagefile.sys | Windows 10/11

How to delete, move and resize pagefile.sys (4)

2. Select your external drive

From the 'Virtual Memory' window, uncheck the option 'Automatically manage paging file size of each drive'.

Under 'System manage file' select 'No paging file'. Next, select the external drive that is showing under the C Drive.

Click the 'Set' button. Read through the warning message and then click 'Yes' if you want to proceed.

How to delete, move and resize pagefile.sys (5)

3. Restart your PC

Your system will need to restart for these changes to take effect. Click 'Ok' to dismiss the pop-up message. Save and close any open files and then reboot your PC.

Windows 10 will automatically delete the old pagefile.sys and create a new one on the external drive.

How to resize pagefile.sys

Windows 10 automatically manages the size of pagefile.sys for you, but if hard drive space is at a premium, you can impose limits. Bear in mind that this could reduce system performance.

(Video) What are hiberfil.sys pagefile.sys swapfile.sys large files? how to delete? Windows

One way to have your cake and eat it is to install more RAM. This means your system relies less on the paging file making it smaller. For instance our Windows 10 testing machine has 32GB of RAM which resulted in a paging file of less than 2.5GB.

How to delete, move and resize pagefile.sys (6)

1. Check Memory usage

To determine how much virtual memory your system is using, press Ctrl + Alt + Del to access 'Task Manager'.

Click the 'Performance' tab and then choose 'Memory'. Pay close attention to the amount of memory (in use), as this will give you a rough idea of how large pagefile.sys needs to be.

You'll need to do this over several days to work out how much virtual memory you are using on average.

2. Access advanced settings

In Windows 10 open 'Control Panel'. Select the Windows icon at the bottom left of your desktop and enter the word "Advanced". Next, choose 'view advanced system settings'. In the 'Performance' section click 'Settings'.

In the new window which opens, click the 'Advanced' tab. Find the section named 'Virtual Memory' and click 'Change'.

How to delete, move and resize pagefile.sys (7)

(Video) How to Delete Hiberfil.sys & Pagefile.sys File & Free Up LOTS of Hard Drive Space

3. Set size limits

From the 'Virtual Memory' window, uncheck the option 'Automatically manage paging file size of each drive'. Choose the option 'Custom size'. Set file to at least 800MB under 'initial size'.

Under 'maximum size, enter your desired upper limit for the page file in MB. Remember 1GB = 1,024MB e.g. a maximum size of 8GB is 8,192MB. Click 'Set' to confirm your changes.

And there you have it - you now know everything you need to know to delete, move and resize pagefile.sys.

FAQs

How do I get rid of move and resize pagefile sys? ›

Right click on pagefile. sys and choose 'Delete'. If your pagefile is particularly large, the system may have to delete it immediately without sending it to the Recycle Bin. Once the file has been removed, restart your PC.

Is it a good idea to delete pagefile sys? ›

Pagefile. sys is an extremely important file when it comes to keeping your Windows computer running smoothly. It helps give your PC's RAM more breathing room when physical memory can no longer hold more data. You can delete it, but only do so when you know your computer's RAM has enough capacity to stand on its own.

How do I free up space on pagefile sys? ›

  1. Click "Start," right-click "Computer" and select "Properties."
  2. Click "Advanced System Settings," select the "Advanced" tab and choose "Settings" in the Performance section.
  3. Click the "Advanced" tab and select "Change" in the Virtual Memory section.
  4. Deselect "Automatically Manage Paging File Size for all Drives."

Is it OK to delete Pagefile sys and Hiberfil sys? ›

sys" is used by the hibernation feature. If you don't use this feature, you can safely disable it and delete this file.

How do I clear my paging memory? ›

To configure Windows to clear the paging file on shutdown via the registry:
  1. Open Regedit.
  2. Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager.
  3. Create a DWORD value named ClearPageFileAtShutdown and set its value to 1.
Feb 21, 2021

Is it OK to disable paging? ›

The vast majority of users should never disable the pagefile or mess with the pagefile settings – just let Windows handle the pagefile and use the available RAM for file caching, processes, and Superfetch.

Should I disable Automatically manage paging file size for all drives? ›

No. We highly recommend all users let Microsoft Windows choose the best initial, maximum, and minimum settings for their virtual memory (page file). Disabling or setting the page file size too small can reduce system performance and cause instability and crashes in Windows.

Can I disable pagefile sys? ›

IMPORTANT: Disabling the pagefile or deleting the pagefile. sys file might adversely affect the overall performance of the Windows 10 operating system. If you find that the Windows 10 is not working properly after disabling and deleting the pagefile, please turn on the pagefile again.

Why does Pagefile sys take up so much space? ›

Otherwise known as 'virtual memory', a huge pagefile. sys can indicate that it might be time to upgrade the system's RAM and that virtual memory is being relied on too heavily. Virtual memory is only used when RAM reaches its limits and only the least-used data that are typically held in RAM is sent there, usually.

Should I clear Pagefile at shutdown? ›

While it is generally not necessary for most users, some people want to clear the pagefile on shutdown. Windows uses this file as virtual memory / extra ram. Lets say that you are working on a highly confidential MS Word doc.

Videos

1. January Office Hours: Participation in the Pilot & Use of NCWDMS System for AFCARS 2020 reporting
(usgovACF)
2. How to delete pagefile.sys | How to reduce Pagefile.sys Size
(What's How)
3. What Is Pagefile.sys? Can I Delete It?
(Ask Leo! - Tech confidence & solutions)
4. Windows 10 - how to disable paging file (pagefile.sys)
(How To Services)
5. How to Delete Windows 10 Paging File Automatically on Shutdown
(Britec09)
6. Custom Paging File Size for windows 11 4 GB / 8 GB/ 16 GB RAM
(The Geek Page)
Top Articles
Latest Posts
Article information

Author: Kieth Sipes

Last Updated: 02/19/2023

Views: 6041

Rating: 4.7 / 5 (67 voted)

Reviews: 82% of readers found this page helpful

Author information

Name: Kieth Sipes

Birthday: 2001-04-14

Address: Suite 492 62479 Champlin Loop, South Catrice, MS 57271

Phone: +9663362133320

Job: District Sales Analyst

Hobby: Digital arts, Dance, Ghost hunting, Worldbuilding, Kayaking, Table tennis, 3D printing

Introduction: My name is Kieth Sipes, I am a zany, rich, courageous, powerful, faithful, jolly, excited person who loves writing and wants to share my knowledge and understanding with you.