Automatic cleanup of old logs
Logs grow over time. Automatic cleanup keeps the database small by deleting old records for you.

- Open Settings → Auto Delete Logs (Data Retention).
- Tick Enable automatic deletion of old email logs.
- Under Retention Interval enter a number and pick a unit: Second(s), Minute(s), Hour(s), Day(s), Month(s) or Year(s). The default is 30 Day(s).
- Leave Include Trash ticked if trashed logs should be removed too.
- Click Save Changes.
A background task (WordPress cron) runs every hour and permanently deletes the logs older than your limit. Use Run Auto-Delete Cleanup Now (under Manual Cleanup) to do it immediately; it asks you to confirm, then reports how many logs were deleted.
Automatic deletion is permanent. Export a CSV first if you need a copy (Export logs).