Home pagefile How to automatically remove Pagefile.sys when stopped in Windows 10

How to automatically remove Pagefile.sys when stopped in Windows 10

by David
How to automatically remove Pagefile.sys when stopped in Windows 10

Pagefile.sys acts like virtual RAM, which Windows uses as RAM to store unused programs, putting less pressure on the actual RAM. The size of the swap file is usually close to the size of your actual RAM, so it can take up a lot of space depending on your RAM. If you set the swap file to delete with shutdown, you will save hard drive space in exchange for slightly extending your downtime. Here’s one way the system can automatically delete the stopped pagefile.sys file in Windows 10.

To configure this, you will make changes to the Windows registry. It should be safe, but to be super safe, you should back up your Windows 10 registry before you start.

1. Open the Windows 10 registry editor by pressing To win+ R, then entering regedit in the box.

Automatically delete the Sys Shutdown Windows 10 Regedit swap file

2. In the registry editor, go to:

3. Click on “Memory management”, then double-click on “ClearPageFileAtShutDown” in the right panel.

4. Set its value to “1” and restart the PC. Each time you turn off your PC, the swap file will be deleted. Don’t worry, it will be recreated when needed.

How to automatically remove Pagefile.sys when stopped in Windows 10

How to automatically remove Pagefile.sys when stopped in Windows 10

If this tip gave you some confidence in the Windows registry, you can find that and more in our list of Windows registry hacks. We also have a guide on how to change another user’s registry in Windows 10.

Related:

Is this article useful?

!function(f,b,e,v,n,t,s)
{if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};
if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version=’2.0′;
n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];
s.parentNode.insertBefore(t,s)}(window, document,’script’,
‘https://connect.facebook.net/en_US/fbevents.js’);
fbq(‘init’, ‘400239050508508’);
fbq(‘track’, ‘PageView’);

You may also like

Leave a Comment