Most of the guys will know about this, but so many people have asked me how to delete pagefile.sys and hiberfil.sys. You will find both these files hidden under your C: drive if you have enabled virtual memory and hibernation.
HIBERFIL.SYS is a file the system creates when the computer goes into hibernation mode. Hibernation takes everything in memory and writes it to your hard drive as the hiberfil.sys file. If you have 512MB of memory, then hiberfil.sys will be about 512MB. If you have 1GB, the file will be around 1GB. Even if you don’t use hibernation, hiberfil.sys will still take up this huge amount of disk space if you have enabled it.
Pagefile.sys is a virtual memory file. Normally the size of pagefile.sys is around 1.5 times of your physical memory size.
If you want to remove the file hiberfil.sys, then you just need to disable hibernation from control panel -> power option -> Hibernate tab.
Same with pagefile.sys. You can disable this by going to Control Panel and run System. Click on Advanced tab and click the Settings button on Performance. Now select the Advanced tab and click on change on the virtual memory section. Change to “No Paging File” and click “set”. I wouldn’t recommend you to turn off your virtual memory unless you have lots of RAM. Virtual memory is an area on the hard disk that Windows uses as if it were RAM. So if you have very low RAM, maybe 256MB, turning virtual memory off will be a disaster. You will notice that your computer will struggle to multitask.