How to delete the Hiberfil.sys file?

So, how do you delete the Hiberfil.sys file on Windows 2008 server and/or Windows Vista machine? Our Dell server’s boot partition ran out of disk space, while troubleshooting as to what was taking up so much space, I found that hiberfil.sys file was taking up over 4 GB of space in a 10 GB partition….

Hiberfil.sys file is used when computer needs to go into hibernation mode. It makes sense on a laptop with non-server OS but it does not make any sense on a server machine. Anyway, follow these steps to delete the file and free up some space:

Go to Start > Command Prompt > Right click and choose “Run as Administrator” option.

Type in this command:
powercfg -h off

This will delete the file, no reboot required. This command should also work on your windows vista operating system.