Deletes Temper's recorded history files, or prunes lines from them.
$ mix temper.clean
$ mix temper.clean --older-than 90
$ mix temper.clean --keep-shas 50
Without retention flags, removes every file matching
.temper/history-*.jsonl (all partitions). Useful when the history
predates a large refactor and its evidence no longer says anything
about today's tests.
With retention flags, files are rewritten in place instead: lines outside the retention window are dropped, files left empty are removed, and corrupt lines (truncated cache tails) are dropped and counted. This keeps a history persisted across CI runs bounded without discarding the current evidence window.
Options
--history GLOB— operate on files matching this path or glob instead of the default (also configurable withconfig :temper, history_path: "..."). A literal{partition}widens to*, covering every partition's file--older-than DAYS— keep only lines recorded within the last DAYS days--keep-shas N— keep only lines whose commit SHA is among the N most recently recorded distinct SHAs. Lines without a SHA (suite summaries, null-SHA records, future kinds) are untouched by this flag: what it cannot read, it cannot claim. Use--older-thanto age those out
With both flags, a line must satisfy both to survive.