How to Delete PageFile.sys in Windows 10 in seconds?

Pagefile.sys or page file is a virtual memory file in Windows 10 which is stored on your hard drive. It acts as secondary memory to RAM. Page file is very important for Windows 10 as it speeds up your PC when PC is low on primary memory. Page file memory can be set manually. By default it’s set to automatic in which system allocates a percentage amount of RAM to virtual memory. However you can increase or decrease it through system properties.

The stagnant data on your PC is transferred to the virtual memory or pagefile.sys in form of page files. This stagnant data is swapped back to primary memory whenever user switches back to data program. Pagefile.sys can be deleted to save some space on your hard disk. It will save 2-3 GB depending upon your PC settings. However it’s not recommended as it can make your computer slow at times. If you have enough RAM and you don’t run too heavy programs then you can delete pagefile.sys in order to get more space in your hard disk.

Sometimes a very large chuck of pagefile.sys uses too much space on your hard disk. Sometimes it gets corrupt. In both cases you can delete this file. Deleting pagefile.sys will also delete swapfile.sys on computer. You should be aware about both files as deleting them is not recommended by Microsoft.

How to Delete pagefile.sys on Windows 10?

Follow the steps below to delete pagefile.sys files from your computer:

1. Open “Control Panel” on Windows 10.

Control panel

2. Go to “System and Security.”

windows 10 system and security

3. Go to “System“.

windows 10 system

4. Click on “Advanced System Settings” located on left side.

Windows 10 advanced system settings

5. Click on “Settings” option under Performance in “Advanced” tab.

settings in windows 10

6. Select the “Advanced Tab” on next Window.

7. Click “Change” under Virtual Memory options.

change virtual memory win 10

8. Uncheck the option which says “Automatically manage paging file size for all drives“.

automatically manage paging file size win 10

9. Select “No Paging File” radio button option.

no paging file win 10

10. Click “Set” in front of it and then OK.

11. Click “Apply” to save changes.

12. Reboot your computer to check whether pagefile.sys got deleted or not.

How to Clear PageFile.sys in Windows Group Policy?

Microsoft does’t recommend deleting pagefile.sys file from Windows 10 as it is very important for your system to keep functioning properly. Virtual memory acts as secondary memory which helps speed up your laptop even with low RAM. Deletion of page file is not recommended but you can clear the data inside it every time you perform shutdown. It can be done via Windows group policy in Windows 10.

Steps to clear pagefile.sys via Windows Group Policy:

  1. Open RUN. (Windows key + R).
  2. Type “GPEDIT.MSC” and hit enter.
  3. Go to path “Computer Configuration > Windows Settings > Security Settings > Local Policies > Security Options” from left panel.
  4. On the right hand side find “Shutdown: Clear virtual memory page fileĀ policy”.
  5. Double click on it and it will open a Window.
  6. Select “Enabled” radio option in the window that opened.
  7. Click OK to save changes.
  8. Reboot your computer for changes to take effect.
  9. To change settings, open the same path and select “Disabled”, click Ok, save changes and reboot computer.

How to Clear Pagefile.sys via Windows Registry in Windows 10?

You can easily clear pagefile.sys file via Windows 10 registry. It will clear pagefile.sys on every shutdown of Windows 10. It will save some space on your computer by clearing the pagefile.sys. It’s data will be deleted however file will still be there. It won’t get deleted.

Windows 10 registry editor

Steps to clear pagefile.sys from Windows Registry in Windows 10

  1. Open RUN. (Windows key + R).
  2. Type “REGEDIT.EXE” and hit enter.
  3. Go to this path : “HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlSession ManagerMemory Management” from left hand side.
  4. Check for file “ClearPageFileAtShutdown” on right hand side.
  5. If it’s there, double click on it and change value to 1.
  6. If it’s not there then right click on memory management and select New >> DWORD (32 bit value) and name it as ClearPageFileAtShutdown.
  7. Set the value of this file to 1.
  8. Click OK to save changes.
  9. Reboot your computer for changes to take effect.

Hopefully it will clear all your doubts regarding deleting pagefile.sys in Windows 10. You will also learn to clear pagefile.sys in Windows 10 to save space instead of deleting it which is not recommended. If you have any doubt regarding deletion/removal/clearing of page file of Windows 10 then comment below.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.