...looking further into this, perhaps the entire endeavour to delete log files was misguided from the start as? perhaps these should not be created an saved there....although I am pretty sure I originally set this up because there were a massive number of log files at some point being saved into those folders, but I have completely forgotten why.