find /path/to/you/directory -type -f -mtime +30 -exec rm -f {} \;