Skip to content
Corex

EmailRecordPruning

Corex\Email\Studio\EmailRecordPruning · interface · Add-ons layer

Removes Email Studio records of a kind that were made before a date: captured and held emails whose 30 days have passed (spec 113, FR-020).

pruneOlderThan(string $type, DateTimeImmutable $cutoff, int $limit): int

Section titled “pruneOlderThan(string $type, DateTimeImmutable $cutoff, int $limit): int”

Remove at most $limit records of $type made before $cutoff, oldest first.