Thanks very much, I was just digging in to that. I like this answer, but I’d change the the content of ‘bigfix_delete_txt_files’ slightly based on the Ubuntu answer I linked earlier
appendfile 0 * * * * find /tmp -xdev -type f -atime +10 -delete
This uses ‘find’ to list out only the files that have not been accessed in more than 10 days. Directories are left behind, to prevent accidental deletion of active files if their parent directory has not been accessed but the child file has been accessed recently.
-xdev : Do not traverse into other filesystems (hopefully you're not putting mounts under /tmp, but it's possible, and if so don't traverse through those mountpoints)
-type f : Only 'file' type, skip directories, block devices, etc.
-atime +10 : Only where the 'last accessed time' (atime) is more than 10 days old
-delete : Delete the files that match all the criteria. This uses the built-in 'delete' functionality of 'find', rather than spawning an additional process for each file found.