Skip to main content

Delete older than..

Find directories and delete recursively

find /path/ -mtime +7 -type d -exec rm -rf {} +

Find files and delete recursively

find /path/ -mtime +7 -type f -exec rm -rf {} +