Skip to content

kumiko events

Terminal window
kumiko events prune [--older-than <days>] [--dry-run]

The event-store is the source of truth — projections (DB, search) are rebuildable from it. Most of the time you never touch the events table. The exception: long-lived apps eventually want to prune events that all consumers have already processed.

Deletes events older than <days> (default 30), but only if no registered consumer still has its cursor inside that window.

Terminal window
kumiko events prune --older-than 90 --dry-run # preview
kumiko events prune --older-than 90 # do it

If a consumer would fall behind, prune aborts with ConsumerLagError and prints which consumer is in the way. Options:

  1. Let the consumer catch up
  2. Disable it (kumiko consumer disable)
  3. Skip the stuck event (kumiko consumer skip)