- Issue created by @endless_wander
- πΊπΈUnited States laboratory.mike
Currently I have this in a cron job:
$now = new DrupalDateTime('-90 days'); $delete = \Drupal::database()->delete('mail_safety_dashboard'); $delete->condition('sent', $now->getTimestamp(), '<'); $delete->execute();
We could set this up in a container with dependency injection, and add a config to set the retention time.