Delete temporary files that are older than X days from the /tmp and /var/tmp/ directories. In this example, we are removing temporary files that are older than 14 days:
find /tmp -type f -mtime +14 -exec rm {} ; find /var/tmp -type f -mtime +14 -exec rm {} ;