Repository navigation
Clarify tracking for Codex local session deletion, retention, and cleanup UX #28187
Description
Summary
This issue is not intended to duplicate a single existing feature request. It is meant to clarify the tracking status for Codex local session deletion, retention, and cleanup UX.
Several related issues exist, but the current triage state is confusing because some issues have been closed while the user-facing problem appears unresolved.
Related issues:
- Allow to delete threads in the Codex app #13018 — delete threads in the Codex app
- Codex App: Add UI controls to delete local threads and session data #20251 — delete local threads and associated session data from the UI
- "codex delete <session>" #8784 — "codex delete "
- Customizable retention period for sessions #6015 — configurable retention period for sessions
Problem
Codex stores local session/thread data, but users do not currently have a clear, discoverable workflow to answer:
- What session/thread data is stored locally?
- Where is it stored?
- How can a specific session/thread be deleted?
- How can archived or old sessions be deleted?
- How can local logs/history/session artifacts be cleared?
- How can retention be configured?
- Which issue is the canonical tracking issue for this work?
This is not only a UI preference. It is also a local data hygiene, privacy, and trust issue.
Triage concern
#20251 was closed as a duplicate of #13018. However, #13018 is also closed, and it appears to cover a narrower request: deleting archived threads from the app UI.
#20251 covered a broader local data-management problem, including local session data, logs, history, storage discoverability, and retention controls.
If #13018 is considered the canonical issue, please clarify whether it was resolved, rejected, or moved to internal tracking.
If #6015 is now the canonical tracking issue for retention and cleanup, please link the related issues there and clarify the expected scope.
If none of the existing issues are canonical, please keep this issue open as the tracking issue or reopen the appropriate existing one.
Expected outcome
One of the following would resolve the triage ambiguity:
- Reopen the canonical issue and mark related issues as duplicates of that open tracker.
- Keep this issue open as the canonical tracker for local session deletion, retention, and cleanup UX.
- Clearly state that this work is tracked internally and link or label the public issue accordingly.
- Split the work into explicit sub-issues:
- delete thread/session from UI
- delete archived sessions
- clear local logs/history
- show/open local storage location
- configure retention by age/count
- disable future local transcript/session persistence
Why this matters
Manual deletion of internal files should not be the primary workflow for managing Codex local data.
Codex sessions can contain source code, file paths, diffs, commands, logs, project names, environment details, personal notes, and accidental secrets.
Users need a clear and supported way to manage that data without reverse-engineering internal storage folders.
Activity
github-actions commentedon Jun 14, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
Aesthermortis commentedon Jun 14, 2026
Thanks. These are related, but this issue is intentionally about canonical tracking and triage ambiguity, not only the deletion workflow itself.
If #20230 is the intended canonical tracker, that would be a reasonable outcome. In that case, please link #13018, #20251, #8784, #6015, and this issue there, and clarify that #20230 covers local session deletion/cleanup/retention UX.
The main concern is that related issues have been closed as duplicates of closed or narrower issues, leaving no clear public tracker for the broader local data hygiene problem.
linerking commentedon Jul 4, 2026
Adding a current macOS/Codex Desktop data point for why archive is not enough as a local data-management workflow.
A user asked whether archiving threads prevents local or remote storage from continuing to grow. On the local machine, archive appears to be only a visibility/state change, not a storage cleanup mechanism.
Observed local
~/.codexsizes on 2026-07-05:This reinforces the user-facing ambiguity:
~/.codexinternals.Expected UX would ideally make the distinction explicit:
logs_*.sqliteseparately from user transcripts.Without this, archive can look like cleanup while local data continues growing indefinitely.
38st commentedon Aug 31, 2026
Adding a measured macOS Codex Desktop case and a concrete storage-manager proposal.
Observed impact:
~/.codex/sessionsreached 22 GiB after several months of regular Desktop use.logs_2.sqliteconsumed another 1.0 GiB.Requested Desktop UX:
On APFS, logical file size and physically reclaimable space can differ because of shared/cloned blocks, so the UI should label those measurements separately.
This overlaps with #6015 for retention and #34337 for unbounded rollout growth, but the missing user-facing storage manager and index-safe deletion path are the core request here.
phplego commentedon Oct 18, 2026
Please add date/project filters, multi-select, and bulk deletion to quickly clean up old history.
I'd also like to trim old messages from long threads without deleting the thread—for example, keep the latest 10 MB of a 500 MB thread and discard the obsolete earlier history.