How to disable hibernation in Windows 11 and delete hiberfil.sys?

In Windows 11, like in previous Windows versions, when your computer enters hibernation, it saves the current state of your system, including open applications and files, onto the hard drive.