Although the Windows 11 page file (pagefile.sys) will increase the overall performance of your Windows 11 PC, the security issue may arise, such as being maliciously used by others, if you didn’t delete Windows page file. To ensure your PC security, this article will show you how to delete the Windows 11 Page File with every shutdown.
Solution 1: Delete the Windows 11 Page File at Shutdown with Microsoft Fix It
Microsoft Fix It available at KB314834 will automatically clean Windows paging file (Pagefile.sys) at shutdown. So you just need to run Microsoft Fix It to completely remove any unsecured data in the page file.
How to run Microsoft Fix It: Select Start > Settings > Update & Security > Troubleshoot, or select the Find troubleshooters shortcut at the end of this topic.
Solution 2: Delete the Windows 11 Page File at Shutdown Via Changing Registry
Running Registry will force to delete the Windows 11 Page File at shutdown to remove all the potential insecurity. This is most recommended way as the Windows 11 performance will not be affected, and the page file will be recreated with new data during the next restart of our Windows 11 PC.
Step 1: Press Win+R to launch Run and type regedit to enter Registry;
Step 2: Search and find: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\
Step 3: Right-click on Memory Management and select New > DWORD (32-bit) Value;
Step 4: Name the DWORD value ClearPageFileAtShutdown;
Step 5: Double-click on the DWORD value and type 1, in the Value data box.
Now you have finished all the settings and the Windows 11 Page File will be removed at shutdown process.
Solution 3: Delete the Windows 11 Page File at Shutdown Via Third Party Tool
Some third party tool such as Ultimate Windows Tweaker will help Windows 11/10 users to delete the Windows 11 Page File at shutdown process in an easy and effective way, without any complicated system settings, in case you’re worry about not clear how to delete the Windows 11 Page File at shutdown manually.