find \ (-name ‘*’ \) -atime +7 -exec rm {}\
Just the change the +7 to a specific number of days if required.
How can I remove all files older than 7 days?
find \ (-name ‘*’ \) -atime +7 -exec rm {}\
Just the change the +7 to a specific number of days if required.