Question Windows won't remove unused page file

Dimitri001

Reputable
Oct 11, 2019
166
7
4,585
I had to move my pagefile around to format a partition, so I created a page file on E: and told Win to remove the one on C:, but it didn't do it. Then I set the pagefile on E: to none and told Win to create one on C: and now there's a lingering pagefile on E: that Windows won't remove.

In "virtual memory" it says that there's no pagefile on E:, but I see one in Explorer and one is listed in Disk Management. I cannot get rid of this page file. One also exists on C:.

I've tried restarting the computer, but the pagefile is still there.
 

Dimitri001

Reputable
Oct 11, 2019
166
7
4,585
when setting pagefile.sys to drive 'C:' what are the attributes of this same file left on 'E:';
file size, date modified, etc?
The date is yesterday, which is when I created it when I tried moving the file from C: to E:, and the filesize is 2GB, which is what I had set. So it's definitely the one I created.

I should say, I also yesterday tried setting the page file on E: to 16MB, which is the minimum size, the Virtual Memory menu accepted this, I restarted the computer and then diddly squat happened. The pagefile on E: was still 2GB. Then I again set it to none and again nothing changed.

Interestingly, although Virtual Memory says there's only one pagefile on C:, it says there's currently 17GB allocated to page files on all drives, which is what you get when you add up C:, D: and E:. The pagefile on C: is only 2GB.

Try running windirstat and see if you really do still have one on E


its possible its showing in disk management as it had one on there before, it might not now.

where does it show in explorer?
I'll try this a little latter when I have the time.

In explorer it shows up in the root directory, E:\. That's where the one on C: shows up, too.
 
Last edited: