How to delete files older than X hours:
find /path -maxdepth 1 -type f -mmin +600 -exec rm -fv {} \;
>> -mmin +600 (10 hours)
How to delete files older than 1 day:
find /path -type f -mtime +1 -exec rm -fv {} \;
How to delete files older than X hours:
find /path -maxdepth 1 -type f -mmin +600 -exec rm -fv {} \;
>> -mmin +600 (10 hours)
How to delete files older than 1 day:
find /path -type f -mtime +1 -exec rm -fv {} \;