> But automatically deleting files - in either of those - while the system is running is going to break all sorts of things.
Detect the process that created a file and delete it 24 hours after the process ends.
Detect the process that created a file and delete it 24 hours after the process ends.