ru en

How to clear a swap file in Windows 11?

608 просмотров
How to clear a swap file in Windows 11?

Surely, you may have already heard that one of your friends or acquaintances said that he knows how to clear the swap file in Windows 11 and of course, this information could be interesting and useful to you, but unfortunately, many people do not have opportunities to explain how the swap file functions and why it needs to be cleaned.

Swap file in Windows 11

In fact, the so-called "swap file" is the free disk space that the device starts using at the moment when it lacks the available RAM. It turns out that modern operating systems are so progressive that they can independently adapt to the solution of user tasks. Of course, all this is good and convenient, only in a situation where you are not afraid that the data that gets into the swap file will not be saved and will not get to third parties. In such a situation, there is a high probability that the user may lose a valuable project that he has been working on for a very long time, or information that should not become public will be lost.

It turns out that on the one hand, the swap file is an excellent software add–on that can speed up the system with a lack of RAM, but on the other hand, it is a saved file on the device with information that can get to third parties, which is not acceptable. It seems to be a plus, and it seems to be a minus in this situation… But we know how to turn a minus into a plus and we will tell you about it below.

How to clear a swap file in Windows 11?

In order for you to understand what a swap file is, I would like to explain to you that this is a seemingly ordinary data file - Pagefile.sys , which every user can easily find by following the following path - C:\Pagefile.sys .

  • In order to set up automatic cleaning of the swap file, you need to do the following: click on Win+R → enter the command – regedit → go to the last section on the following path - HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management → double-click on ClearPageFileAtShutdown → set the value "1" → click on the "Ok" button → it remains to "Turn off" the device and turn it on again.

After the above operation, your system will be able to clear the swap file in Windows 11 without your help. Most importantly, the system will automatically clean the swap files every time the device is turned off, which is incredibly convenient – a new inclusion and not any old files.

ru en