How to Delete pagefile.sys in Windows 7 Easily? This question bothers many who have got their computers with low Random Access Memory. Many of you would have come across such a situation where your applications become really slow. Sometimes, the physical hard disk space shortage on the drive where Windows is installed becomes very low, forcing you to delete some large files like pagefile to get some free space. After trying all possible remedial actions, you may be left with no other option than to delete the pagefile.sys, a Windows system file.
Windows 7 pagefile is normally found under the root directory in C drive. i.e. The page file is located at C:\pagefile.sys if the windows 7 operating system is installed on the C drive of your computer or laptop machine. You just can’t delete the pagefile.sys, as it is a system file. If you try to delete the pagefile, Windows 7 will display the error or warning message “permission denied” or “file in use” or some other similar message, this halting the deletion process.
Before describing you with the details of how to delete the windows pagefile, let me tell you what is a pagefile, how to acess the pagefile and what are the alternatives to deleting the page file.
What file is pagefile.sys?
Pagefile. sys is an operating system file used by Windows 7 OS. It is a virtual system memory or swap memory. This file acts as a swap file which helps to improve system performance. This file acts complimentary to RAM when your application needs more RAM than what is available in the system. In such situations, part of your content from RAM is written to the page file, so that RAM is freed.
How to Access pagefile.sys?
Pagefile.sys is normally hidden in windows explorer. To access the file, go to the “Tools” menu option in windows explorer and then click “Folder Options” menu item. Then, select or enable “Show hidden files and folders”.
If the “Tools” menu option is not visible, press the ‘Alt’ button on your keyboard and menu options will be visible now. Pressing ‘Ctrl” and F1 keys together is another option to solve the same problem.
Alternatives to Deleting the Pagefile
You should not delete pagefile.sys, normally. If you delete the pagefile.sys, Windows 7 has no other place to store your data when physical RAM gets full. This causes the Windows or the app you are working with to crash. Instead of deleting the paging file, you may try to resize the paging file, by having a paging file with the smaller file size.
At times, you need space on the drive and the only option left may be deleting this file. If so, first try to minimize the maximum size (MB) value of the paging file and see it solves your problem. You can also create the pagefile on another drive, than the one in which you have installed Windows operating system files, this freeing space in your windows drive.
If you still need to delete the paging file, delete it as per the instructions given, a few paragraphs below. Then recreate the pagefile, at the earliest opportunity.
How to Delete pagefile.sys in Windows 7 Easily?
To delete your pagefile.sys system file, you need to follow the procedure given below.
First, you have to set your Virtual Memory file size to zero, and then reboot. Once you return, Windows will no longer be using the file and will let you delete it.
Step by step instructions to delete the pagefile.sys file in Windows 7 is as follows.
- Click the “Windows” button.
- Click on the “Settings” menu, which is shown as a Gear icon, just above the “power” menu.
- Key in “performance” in the search bar.
- Click on “Adjust the appearance and performance of Windows”.
- Now, a new popup window will be displayed.
- Click on to the “Advanced” tab.
- Click on “Change”.
- Uncheck “Automatically manage paging file size for all drives”, if it is checked.
- Click on “No paging file”.
- Instead of the previous step, you may give the values 0 (Zero) for both the Initial size (MB) and Maximum size (MB) under the ‘Custom size’ radio button. Alternatively, the maximum size (MB) value alone can be set to 0 (Zero).
- Now, Click “OK”.
- Again, Click “OK” at the bottom.
- Close any open applications.
- Restart your computer.
- Go to Windows Explorer.
- Find out the pagefile.sys on your computer. It is normally found in the root directory of the C drive if your Windows operating system is installed on the C Drive. If Windows is not installed in C, use the appropriate drive letter where you have installed the windows 7 operating system. e.g. D, E, F, etc, wherever the windows operating system is installed.
- Right-click on C:\pagefile.sys.
- Then, select “Delete”.
- Now, restart your computer.
- Your pagefile.sys is now part of history. You have successfully deleted the pagefile.sys.
Conclusion: It is not advisable to delete the pagefile.sys. System performance issues or space constraints sometimes demand you to delete the pagefile.sys. In the rarest of rare cases where you need to delete the pagefile, mostly to get some free space on the drive, try to recreate the page file at the earliest possible opportunity.
Pagefile is actually a virtual memory or swap memory which is used by the Windows 7 operating system to free RAM. Files from Random Access Memory are written to and from this file, as and when needed. This frees the physical RAM.
Pagefile.sys file can not be deleted with ease, as it is an operating system file. You need to first set the “No paging file” option. Alternatively, make the paging file size value (both the initial size (MB) and maximum size (MB) values can be set or the maximum size (MB) value alone) to zero. After that, you need to reboot your system. After the machine is rebooted, go the paging file in the windows explorer, right-click on the pagefile.sys filename and then select “Delete”. This deletes the pagefile.sys from your computer.