CLIMission
How to
Clean closed records
Preview expired closed records or delete them with explicit confirmation.
What changes
clean is preview-only by default and never targets open work. --delete asks for confirmation interactively; add --yes for confirmed non-interactive deletion.
When this helps
- Local storage has old closed records.
- A repo needs a cache cleanup without touching active work.
- You want to preview which closed records are eligible for removal.
Run this command
sumr mission clean# preview the default 30-day retention setsumr mission clean --older-than 30 --delete# ask before deleting in an interactive terminalsumr mission clean --older-than 30 --delete --yes# confirm deletion for automationFlags you can use
--older-than <days>Set the retention threshold for closed records.
--dry-runExplicitly preview eligible cache without deleting it.
--deleteDelete eligible closed Mission cache.
--yesConfirm non-interactive deletion.
--jsonReturn a structured JSON envelope for scripts, CI jobs, and AI assistants.
--help, -hShow the command syntax, supported flags, and examples without changing files.
Keep in mind
--deletewithout--yesprompts in an interactive terminal and fails safely in non-interactive mode.--yesis valid only with--delete.--older-thanmust be a positive integer no greater than 36500.--dry-runand--deletecannot be combined.- Planning, blocked, in-progress, review, validated, and QA-failed Missions are not cleanup candidates.