There is a preference setting for each POP email account of "Delete from server" and the choices are Never, Seven days, and When removed from Inbox.
For IMAP accounts, there's a Deleted Messages, Remove setting and the choices are Never, After one day, after one week, After one month.