Windows – How to Delete Old pagefile.sys and hiberfile.sys on Secondary Disk

filesystemswindows

A while ago I swapped my main hard disk for a SSD. Now the old one is used as a secondary hard disk, and my OS is a fresh windows install on the main SSD disk.

Nevertheless, there are still huge pagefile.sys and hiberfile.sys on that secondary hard drive. Those are not the ones used by the current windows, as those do exist on C:\.

I tried to attrib -s -h them, but it refused with "Access denied".

Any idea how to delete those old unused system files and reclaim the space?

Best Answer

The files are protected using NTFS ACLs. Use takeown to take ownership of them.

Related Question