# Cleaning up e-mail logs

**URL:** https://meta.discourse.org/t/cleaning-up-e-mail-logs/39132
**Category:** Support
**Created:** [February 6, 2016, 1:51am UTC](https://meta.discourse.org/t/cleaning-up-e-mail-logs/39132 "2016-02-06T01:51:51Z")
**Posts on this page:** 1
**Showing post:** 19

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [May 10, 2018, 7:55am UTC](https://meta.discourse.org/t/cleaning-up-e-mail-logs/39132/19 "2018-05-10T07:55:01Z")

</div>

The default for `SiteSetting.delete_email_logs_after_days` has been reduced to 90 days as per

[https://github.com/discourse/discourse/commit/186623acd070b71422dfe61e083fa3aeb67844ac](https://github.com/discourse/discourse/commit/186623acd070b71422dfe61e083fa3aeb67844ac)

For busy sites that send out alot of emails, this table can bloat fairly quickly. There are some optimizations that we can do on the table to make it use less disk space but that’ll have to wait till [Discourse Version 2.1](https://meta.discourse.org/t/discourse-version-2-1/86339).

---

_[View the full topic](https://meta.discourse.org/t/cleaning-up-e-mail-logs/39132)._
