Skip to content

Reduce the size of your CiviCRM DB by removing historic bulk mailing data.

License

Notifications You must be signed in to change notification settings

fuzionnz/nz.co.fuzion.deleteoldbulkmailings

Repository files navigation

Delete Old Bulk Mailings for CiviCRM

Reduce the size of your CiviCRM DB by removing historic bulk mailing data.

Installation

Refer to CiviCRM Extensions Documentation

Configuration

No special configuration is required for this extension. Just install it!

Usage

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.

License

Copyright (C) 2018, Jitendra Purohit [email protected], licensed under the GNU Affero Public License 3.0. See LICENSE.md.

Credits

This extension was written by Jitendra Purohit (@jitendrapurohit) of Fuzion.

Supporting Organisations

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 - [email protected] - for professional support and development requests.

About

Reduce the size of your CiviCRM DB by removing historic bulk mailing data.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages