HOW ? TO delete page file & hibernation file on Lenovo Flex 5 Laptop WITH WIN11 HOME

how do i disable an delete the page file an hibernation file on Lenovo Flex 5 Laptop, 14.0" FHD Touch Display, AMD Ryzen 5 5500U, 16GB RAM, 256GB Storage, AMD Radeon Graphics, Windows 11 Home

dont want or need an it will free up space on the drive

i need a step by step .

The hibernation file saves the stuff you’re working on if you put the computer into hibernation.

You can disable hibernation in Windows to kill it. (You will lose the functionality)

Pagefile.sys is for memory swapping. Removing it can have a small performance penalty and you may face issues when you are using all your RAM.

You can do this by going to About PC → Advanced System Properties → Advanced → Performance Settings → Advanced → Virtual Memory Change and in that window, you can change its maximum size to whatever you desire.