You can find it in the account configuration of your email account of your email clients. There's almost always a checkbox where you can configure how long read or deleted mails shall be kept in the server mailbox. Sometimes you need to click a "More ..." button to see more options, but this setting is almost certainly there.