Settings

Data retention

Where: ExpertPress → Settings → Data retention (Зберігання даних)

What this tab is for

How long old technical records are kept before a daily cleanup deletes them, the result of the last cleanup, and records that are on hold and must not be deleted. The core plugin registers its own mail records here; installed modules (for example messages, video, statistics, promotion or payment receipts) add their own rows.

All periods are saved together with Save. Saving does not start a cleanup. Changes are logged in History of settings changes.

Automatic cleanup needs MySQL 8.0.1+ or MariaDB 10.3+. On older databases periods can be saved, but nothing is deleted automatically; the tab says “Requires MySQL 8.0.1+ or MariaDB 10.3+.”


Daily check (read-only)

  • Where: ExpertPress → Settings → Data retention → Daily check
  • What it shows: what runs the check (Action Scheduler when available, otherwise WP-Cron), Next check (UTC), Last run, Last attempt (UTC), Finished (UTC), and overall status. With WP-Cron the check depends on site traffic and has no guaranteed hour. A daily check is not a promise that rows will be deleted: each target reports its own result.
  • Statuses: Completed; Incomplete (remaining work continues at the next daily check); Error (next attempt on a later day); Unavailable (target skipped); Interrupted or still running (full result unknown); Not run yet.

Editable retention periods

Each row shows the target name and owner, what is deleted, a warning about what will be lost, the Default and Allowed range, the current Period and Unit, the status, Confirmed deleted rows, and Last successful cleanup (UTC). A row marked Managed by legacy settings is still governed by the module's own older setting and cannot be edited here until the module hands it over.

Common rules for every row:

  • Values / limits: Period is a whole number; 0 means keep indefinitely. Unit is days or months. The upper limit depends on the target and is shown as Allowed range.

Finished mail

  • Where: ExpertPress → Settings → Data retention → Editable retention periods
  • What it does: Deletes delivered and cancelled rows of the mail queue that have reliable proof they were sent once. Mail with uncertain delivery and records kept as evidence remain. Old sent and cancelled email history will be deleted.
  • Default: 14 days.
  • Values / limits: 0 (keep indefinitely), 1–3650 days or 1–120 months.
  • When to change it: extend it (90 days) if support often needs to check whether a client received an email; keep it short to keep the database small.
  • Related: Email templates

Finally skipped reminders

  • Where: ExpertPress → Settings → Data retention → Editable retention periods
  • What it does: Deletes only pending or failed booking reminders that were finally skipped because their sending window had passed. Other unfinished mail remains.
  • Default: 0 (keep indefinitely).
  • Values / limits: 0, 1–36500 days or 1–1200 months.
  • When to change it: set 30–90 days to stop old skipped reminders from piling up.

Rows added by modules

  • Where: same section
  • What it does: Each module documents its own data and defaults; the row on this tab shows its description, default and allowed range.

Records on hold (read-only)

  • Where: ExpertPress → Settings → Data retention → Records on hold
  • What it shows: data kinds that modules have marked as held (for example for legal or accounting reasons). They are never deleted by the daily cleanup and have no editable period.

If the tab shows “Retention settings are unavailable or could not be saved. No default period will be used for deletion.”, nothing is deleted until the settings are readable again; ask whoever maintains your site to check System check.