# boolean_smtp_prune_logs

> Fires daily; each run deletes the email log entries older than the retention period.

Action · Tier B · Since 1.0.0

Scheduled on `init` when not yet scheduled. The retention period comes from the `log_retention_days` setting.

## Signature

```php
add_action( 'boolean_smtp_prune_logs', $callback, 10, 0 );
```

## Parameters

No parameters.

## Fires in

- [app/Jobs/PruneLogsJob.php:0](https://github.com/booleanpress/boolean-smtp-src/blob/main/app/Jobs/PruneLogsJob.php) — `BooleanSmtp\Jobs\PruneLogsJob::()`

## Example

```php
add_action( 'boolean_smtp_prune_logs', function () {
    // React to the event.
}, 10, 1 );
```
