How to delete files in linux older than 1 year? [duplicate]
find /the/dir/to/start/in -type f -mtime +365 -ls -exec rm -f -- {} \;
If you are removing lots of files this is typically a lot faster than "-exec" or piping to "xargs":
find . -type f -mtime +365 | perl -lne unlink