Skip to content

chainabit sessions prune ​

Preview or delete settled local conversations before a date

Synopsis ​

text
chainabit sessions prune --before <date> [options]

Options ​

OptionDescriptionDefault
--before <date>Prune settled conversations last updated before this date. Required.—
--applyApply deletions; default is preview—

Options shared by every command are described in Global options and shared behavior.

Behavior ​

Previews local conversations older than --before whose turns are settled. --apply performs the deletions after printing the selection. Unlike reset, its settled-status filter does not include imported-only turns.

Validation ​

--before must parse as a date; prefer a complete ISO date/timestamp. Without --apply this is a preview. Only conversations older than the cutoff and matching the settled-status filter are selected.

Output ​

This action prints JSON even without --json. Its behavior above describes the history/deletion/preview fields; --json is not a confirmation flag. The shared error path exits with the codes in Exit codes.

Safety and billing ​

Local deletion can remove conversation history permanently. Prune previews unless --apply is supplied; reset requires --yes, while delete has no confirmation. Local history deletion does not revoke cloud sharing or delete a cloud session.

Examples ​

bash
chainabit sessions prune --before 2026-10-01

Built with purpose. chainabit.com