Prune Events
prune_eventsPrune old event logs by age, keeping only the latest event per entity. Specify a duration (e.g., '30d') to delete obsolete records and keep workflow state memory focused.
Instructions
Prune old event log entries older than a specified duration, preserving the latest event for each entity.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | Preview the count of events to be deleted without modifying the DB. Defaults to true. | |
| project | No | Optional project identifier. | |
| older_than | Yes | Prune events older than this duration, e.g., "30d", "90d". | |
| preserve_types | No | Event types that should never be pruned. |