kumiko events
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.
Subcommands
Section titled “Subcommands”Deletes events older than <days> (default 30), but only if no
registered consumer still has its cursor inside that window.
kumiko events prune --older-than 90 --dry-run # previewkumiko events prune --older-than 90 # do itIf a consumer would fall behind, prune aborts with ConsumerLagError
and prints which consumer is in the way. Options:
- Let the consumer catch up
- Disable it (
kumiko consumer disable) - Skip the stuck event
(
kumiko consumer skip)
See also
Section titled “See also”kumiko consumer— manage the consumers that block pruning- Event sourcing concept — why events are the source of truth