tmpwatch

Find and remove files not accessed within a specified time period

brewmacoslinux
Try with needOr install directly
Source

About

Find and remove files not accessed in a specified time

Commands

tmpwatch

Examples

Remove files in /tmp not accessed in the last 7 days$ tmpwatch 7d /tmp
Remove files not accessed in 30 days, showing what would be deleted$ tmpwatch -v 30d /var/tmp
Remove files not accessed in 10 hours from a specific directory$ tmpwatch 10h /path/to/directory