# Mautic database is huge, can I manually delete old records?

**URL:** <https://forum.mautic.org/t/mautic-database-is-huge-can-i-manually-delete-old-records/22646>\
**Category:** Product Support\
**Created:** [February 9, 2022, 3:21pm UTC](https://forum.mautic.org/t/mautic-database-is-huge-can-i-manually-delete-old-records/22646 "2022-02-09T15:21:44Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![sfahrenkrog1](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/sfahrenkrog1/32/4583_2.png) [@sfahrenkrog1](https://forum.mautic.org/u/sfahrenkrog1)\
**Post date:** [February 15, 2022, 2:23pm UTC](https://forum.mautic.org/t/mautic-database-is-huge-can-i-manually-delete-old-records/22646/6 "2022-02-15T14:23:45Z")

</div>

Hey Instamaker

You could do this commands on the shell (backup + on your own risk!)

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

We do them regularly but I could give you no garanty.

There is a new plugin which does some campaign\_lead\_event\_log cleanups:  
[https://github.com/Leuchtfeuer/mautic-housekeeping-bundle](https://github.com/Leuchtfeuer/mautic-housekeeping-bundle)

\*\*Update: \*\*  
**Sorry made a mistake in the audit log statement. Fixed it in the gist.**

Greetings  
Sebastian

---

_[View the full topic](https://forum.mautic.org/t/mautic-database-is-huge-can-i-manually-delete-old-records/22646)._
