Index.dat files

Out of curiousity, how does CCleaner delete the index.dat files? I notice the log says "Marked for deletion", and I know that explorer.exe usually has a lock on the files. When does CCLeaner actually delete the files?

Hi rhpt, and welcome to Piriform.

The "Marked For Deletion" means they will be deleted on reboot. They can't be immediately removed by CCleaner because as you say, they're in use.

When you reboot, the index.dat file you see will be one newly created by Windows.

Hi rhpt, and welcome to Piriform.

The "Marked For Deletion" means they will be deleted on reboot. They can't be immediately removed by CCleaner because as you say, they're in use.

When you reboot, the index.dat file you see will be one newly created by Windows.

So what happens if you run CCleaner but do not reboot immediately? It wouldn't effect the deletion on reboot?

You don't have to reboot immediately. They are removed however much time later you choose to reboot.

If you close down for the night, they are removed next day when you boot up.