find mtime exec rm code example Example: find mtime exec rm find /path/to/files* -mtime +5 -exec rm {} \;