BASH

Find And Delete Files
Find any files older than 7 days, show it, then delete it.

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