# Unwieldy database. Help?

**URL:** https://forum.mautic.org/t/unwieldy-database-help/26555
**Category:** Product Support
**Tags:** mautic-4
**Created:** [December 30, 2022, 4:01pm UTC](https://forum.mautic.org/t/unwieldy-database-help/26555 "2022-12-30T16:01:22Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![miamiman](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/miamiman/32/1118_2.png) [@miamiman](https://forum.mautic.org/u/miamiman)
#### Post date: [December 30, 2022, 4:01pm UTC](https://forum.mautic.org/t/unwieldy-database-help/26555/1 "2022-12-30T16:01:22Z")

</div>

I’m reviewing our cleanup cronjob:

`mautic/bin/console mautic:maintenance:cleanup --days-old=365 --no-interaction`

1. Is there a reason to keep anonymous data for so long? Could it be reduced to 90, 60, 30 days? Is there a community agreed to length of time to keep anonymous data?

2. Does the cronjob delete the anonymous data from the mau\_leads table? I have over 8M.

Any comment and help would be much appreciated.

---

<div class="post-metadata">

### Author: ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)
#### Post date: [December 31, 2022, 4:09pm UTC](https://forum.mautic.org/t/unwieldy-database-help/26555/2 "2022-12-31T16:09:48Z")

</div>

Check this:

> <https://gist.github.com/sebastian-fahrenkrog/0d53ced6a50ed680383f4680c6398635>

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/1X/43c63600fe51440378769136903f1fa2a9a34102.png) [@system](https://forum.mautic.org/u/system)
#### Post date: [January 2, 2023, 4:10am UTC](https://forum.mautic.org/t/unwieldy-database-help/26555/3 "2023-01-02T04:10:26Z")

</div>

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.
