Reduce the size of your CiviCRM DB by removing historic bulk mailing data.
Refer to CiviCRM Extensions Documentation
No special configuration is required for this extension. Just install it!
This extension exposes a new API method (Bulkmailing.Deleteoldrecords
). This method accepts either a comma-separated list of mailing IDs to delete, or a date (for which it will delete any mails scheduled for delivery before that).
# Delete records for mailings 123, 456 and 789
$ cv api Bulkmailing.Deleteoldrecords mailing_ids=123,456,789
# Delete all mailings scheduled before 2012
$ cv api Bulkmailing.Deleteoldrecords delivered_date_before=2011-01-01
After installation this is also available as a CiviCRM Scheduled Job under the name "Delete Old Bulk Mailings".
Allowed params for the scheduled job -
- mailing_ids = comma separated list of mailing ids to delete.
- delivered_date_before = Delete mailings delivered before this date. Should be specified in yyyy-mm-dd format.
- skip_activity_delete = If set, the related activities of type
Bulk Email
will not be deleted.
Copyright (C) 2018, Jitendra Purohit jitendra@fuzion.co.nz, licensed under the GNU Affero Public License 3.0. See LICENSE.md.
This extension was written by Jitendra Purohit (@jitendrapurohit) of Fuzion.
This extension is contributed by Fuzion.
We welcome contributions and bug reports via the nz.co.fuzion.deleteoldbulkmailings issue queue.
Community support is available via CiviCRM community channels:
Contact us - info@fuzion.co.nz - for professional support and development requests.