๐Ÿ”’ Privacy & Cleanup

You control what gets indexed, what gets removed, and what gets deleted. Nothing happens without your confirmation.

Privacy Controls

๐Ÿšซ

Exclude

Skip entire directories or specific sessions from indexing. They never enter the index.

โœ‚๏ธ

Redact

Remove a specific turn from the index. kiro DB untouched. Content purged from disk.

๐Ÿ—‘๏ธ

Delete Topic

Permanently remove a sensitive topic. Other topics preserved as new sessions first.

๐Ÿ’ฃ

Purge Index

Delete the entire index. kiro DB unaffected. Rebuilds from scratch on next startup.

Exclude from Indexing

~/.kiro/session-config.yml
privacy:
exclude_dirs:
- /home/user/personal
- /home/user/secret-project
exclude_sessions:
- abc12345

Redact a Turn

Remove sensitive content from index
$
Turn 5 content:
User: "Here's my API key: sk-..."
Assistant: "I'll use that key to..."
โš  Removes turn 5 from index (search, files, commands).
kiro DB is NOT modified.
Proceed? [y/N] y
โœ” Turn 5 redacted. FTS5 optimize complete.

Delete a Sensitive Topic

Permanently remove a topic from kiro DB. Other topics are preserved as new sessions first.

Show topic breakdown
โ†’
Generate files for other topics
โ†’
User loads preserved topics
โ†’
Delete original
delete-topic flow
$
Topic to delete:
2. "Auth middleware" (turns: 5, 6, 7, 8, 9)
Topics to preserve:
1. "REST API refactoring" (turns: 0, 1, 2, 3, 4)
3. "Load testing" (turns: 10, 11, 12, 13)
โš  Turns 5-9 will be permanently deleted from kiro DB.
Step 1: /chat load ~/.kiro/tmp/612381ac-topic-1.json
Step 2: /chat load ~/.kiro/tmp/612381ac-topic-3.json
Step 3: Confirm deletion of original session.
Proceed? [y/N] y
โœ” Temp files generated. Load them, then confirm deletion.

Purge Index

Start fresh
$
โš  Deletes entire session-index.db
Topics, derivations, tags โ€” all gone. kiro DB unaffected.
Rebuilds Layer 0 from scratch on next startup.
Proceed? [y/N] y
โœ” session-index.db deleted.

Smart Cleanup

Suggestions on startup. No auto-deletion โ€” every action requires confirmation.

kiro-session cleanup
$
๐Ÿ—‘ Stale sessions (>90d, โ‰ค2 turns):
e4efb70f test (95d ago, 1 turn)
93fb0554 hi (102d ago, 1 turn)
๐Ÿ—‘ Empty sessions (0 turns):
a1b2c3d4 (empty) (3d ago)
๐Ÿ“ฆ Fully derived (>30d, all topics have new sessions):
612381ac API Gateway Migration (45d, 3/3 derived)