"codex delete <session>"
What feature would you like to see?
Would be nice if codex had a "delete session" command for sessions you are sure you never want to resume.
Additional information
No response
@jif-oai may I pick up this issue? I'd like to contribute on this awesome project Thank you
@leonace924, thanks for offering, but we're not accepting feature contributions from the community at this time.
This would be great, because we have codex exec for non-interactive mode, but when running the Codex CLI programmatically with interactive steps (e.g.: E2E tests), the non-interactive session is not useful and the session list gets spammed.
This would be great, because we have
codex execfor non-interactive mode, but when running the Codex CLI programmatically with interactive steps (e.g.: E2E tests), the non-interactive session is not useful and the session list gets spammed.
Cool, can I work on this then?
I'm a stickler for clean code, and we need this feature.
Similarly, it would be useful to have the option to remove all sessions except the last {num} sessions or all sessions prior to {date}.
This feature is essential.
Another vote for this. Any way to organise sessions would be helpful, but deleting sessions is simply essential.
another one, basic op
Also, I'd go with this command: /session_clear. There are named sessions, and sometimes you just want to clear the session (except the first prompt) instead of recreating it each time.
For instance, you can create a recurring/permanent session with an initial prompt (with some general instructions + ping to some skills), then work in the session, finish the task, and clear the session. For simple, quick recurring tasks, it is super useful; it will help keep sessions cleaner. It's ideal for tasks you don't want to "record" or track.
In fact, it would be even better if we could manage our conversation records like Gemini does. This would make the conversation list during our development cleaner and more convenient to search. Please consider adding this feature officially.
This feature is still needed. I want to delete sessions I've created with /fork. Sometimes there are many sessions being accidentally created.
I would use this a lot. There are sessions I already know I will never resume, and archive does not feel like the same thing as delete. For now I ended up using a local workaround: https://github.com/hanityx/threadlens
I need this feature too.
i need this function
I also need this. I wonder why this function, which is so basic, has not been made available.
Upvote for it. Any follow-up on this issue?
In fact, there is no management method as good as Gemini's.
i really need this
Upvote for it. Many times I just fork so something and do not need the session anymore