You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Yes. currently, I cannot permanently delete tasks in the VSCode IDE with CODEX plugin.
When I right-click on a specific task, the context menu only shows clipboard actions:
Cut
Copy
Paste
Additionally, the main UI only provides an "Archive" option. There is no way to delete a task entirely. This leads to a cluttered workspace with unwanted tasks that can only be hidden (archived) but not removed.
Describe the solution you'd like
I would like a "Delete" option to be added to the right-click context menu for Tasks.
Expected Behavior:
User right-clicks on a Task.
The menu displays: Cut, Copy, Paste, and Delete.
Clicking Delete triggers a confirmation prompt (e.g., "Are you sure you want to delete this task?").
Upon confirmation, the task is permanently removed.
Describe alternatives you've considered
Archiving: I currently have to archive tasks I want to delete, but this is not a true deletion and just moves them to a different list.
Cut: Using "Cut" (Ctrl+X) implies moving the item, not deleting it.
Additional information
Current Right-click Menu:
[ Cut ]
[ Copy ]
[ Paste ] (Missing Delete)
Current UI:
Only allows "Archive".
Reacted by Dylan Wettstein, Josh N, Lev Yastrebov, Konstantinos Smanis, HeyCloudSky, djrarky, Gabriele Mongiano, Prete, Aggressive Combo, Usman Mehmood and 90 more
Reacted by Mateen Ulhaq, Nikhil, Leonardo Schwider, Riccardo Pala and Alberto Pilotto
Very strange that this is not a basic feature by default, I'd rather have delete than archive.
Linking the discussion, quite a lot of people requested this #1442
Reacted by Robert Miller, Femi Badmus, privetin, Liraz, Joey Teng, edward zhu, uciadonis and fl720
Yeah, I noticed it only after I restarted for the update. Still, makes no sense that we can’t just delete it from the Ui but we can just do it by deleting the file. Why not making our lives easier?
Reacted by Lev Yastrebov, joel-ghats, privetin, Liraz and Jack Lilhammers
If you're concerned about clutter in the UI, you can use the existing "Archive" command.
Surely this is a breach of GDPR?
All session data is stored locally in the ~/.codex/sessions directory. You can delete them manually if you want. Totally under your control.
I'm very confused- if you can manually delete it, why not also make it a built-in option in the app to make it easier for users? It's a very simple action that's expected to be in the UI and not something you're supposed to be doing manually, and I'm pretty sure it's just a few lines of code to add that option in the UI to the context menu since it's really just deleting a file
I'm sure everyone using Codex would appreciate if you could add this simple feature
I'm very confused- if you can manually delete it, why not also make it a built-in option in the app to make it easier for users? It's a very simple action that's expected to be in the UI and not something you're supposed to be doing manually, and I'm pretty sure it's just a few lines of code to add that option in the UI to the context menu since it's really just deleting a file I'm sure everyone using Codex would appreciate if you could add this simple feature
Why not develop an action in your project that allows you to delete them? I just ran this prompt in my project and it produced quite a nice little script that I add to my project's specific actions.
Generate a user interface in the style of Codex CLI as a bash script that I can use to select the different threads in a project's session folder in Codex and delete it. Be sure to retrieve the name of the thread like it appears in Codex or the user prompt so I can identify it easily
I'm very confused- if you can manually delete it, why not also make it a built-in option in the app to make it easier for users? It's a very simple action that's expected to be in the UI and not something you're supposed to be doing manually, and I'm pretty sure it's just a few lines of code to add that option in the UI to the context menu since it's really just deleting a file I'm sure everyone using Codex would appreciate if you could add this simple feature
Why not develop an action in your project that allows you to delete them? I just ran this prompt in my project and it produced quite a nice little script that I add to my project's specific actions.
Generate a user interface in the style of Codex CLI as a bash script that I can use to select the different threads in a project's session folder in Codex and delete it. Be sure to retrieve the name of the thread like it appears in Codex or the user prompt so I can identify it easily
Thanks for the idea :) but I'm just really confused about why it isn't built in
Guys this is needed. It's slowing down codex after a while. I just had to delete manually 1GB of archived crap from the sqlite DB. Codex helped me, but still...
Codex itself can fix a thread that is attached to the wrong workspace/project, or delete it. Feed below instructions to Codex, which was also generated by Codex !!! Worked for me charmingly!.
Prompt for Codex:
You are going to rehome or remove a Codex desktop thread using local Codex storage. Be careful and back up everything before editing.
Goal:
If I give you a target thread ID and a new workspace path, move that thread to the new workspace.
If I ask to delete it instead, first identify all local files/state that reference it and explain the deletion plan before making changes.
What to inspect:
~/.codex/session_index.jsonl
~/.codex/sessions/.../rollout-<...>.jsonl
~/.codex/state_5.sqlite
For move/rehome:
Find the thread ID in ~/.codex/session_index.jsonl.
Locate the matching session file under ~/.codex/sessions/.
Back up:
the session file
~/.codex/state_5.sqlite
In the session file, replace the old cwd with the new workspace path everywhere it appears.
In ~/.codex/state_5.sqlite, update the row in the threads table for that thread:
set cwd to the new workspace
set git_sha = NULL
set git_branch = NULL
set git_origin_url = NULL
Show me the verification output:
the updated threads row
the updated cwd lines from the session file
Tell me to restart Codex desktop.
SQL template:
update threads
set cwd='/path/to/new/workspace',
git_sha=NULL,
git_branch=NULL,
git_origin_url=NULLwhere id='<THREAD_ID>';
For delete:
Find all references to the target thread ID in:
~/.codex/session_index.jsonl
~/.codex/sessions/...
~/.codex/state_5.sqlite
Back up every file you will modify.
Tell me exactly what you plan to deleteor edit.
Only then remove the thread’s session file and any index/state references you can confirm belong to that thread.
Show me what changed and what may still require an app restart.
Safety rules:
Never edit without creating backups first.
Never assume only one file matters.
Verify after every change.
If anything looks ambiguous, stop and explain.
Windows reproduction: mixed local Codex tasks and account-backed ChatGPT chats
I can still reproduce a related gap in Codex desktop 26.721.11231.0 on Windows.
The Recents list mixes two different backing types without showing the distinction:
local Codex tasks backed by ~/.codex rollouts/state; and
ChatGPT conversations created in the Web UI and mirrored into the desktop app.
For an account-backed ChatGPT conversation:
Open its context menu in Codex desktop. The available cleanup action is Archive, not Delete.
Archive it in Codex desktop.
The conversation disappears from both desktop Recents and the active ChatGPT Web history, so this is an account-level archive rather than a local-only hide.
Codex desktop has no Archived Chats list/manager where that conversation can be reviewed or deleted.
To delete it, open ChatGPT Web and go to Settings → Data Controls → Archived Chats → Manage → Delete. ChatGPT Web also offered a direct Delete action before archival.
This makes the advice to delete ~/.codex/sessions incomplete for the current desktop app: that can address a local Codex rollout, but it does not delete an account-backed ChatGPT conversation, and manual file/SQLite surgery risks leaving local indexes inconsistent.
Expected behavior:
visibly label whether a Recent item is a local Codex task or an account-backed ChatGPT conversation;
provide Delete… with confirmation and route it to the correct backing store;
expose archived account chats in desktop, or deep-link directly to ChatGPT's Archived Chats manager; and
avoid requiring users to edit rollout files or SQLite by hand.
This is not a request for a duplicate issue; it is a Windows reproduction and a mixed-backing case for this existing issue.
@etraut-openai Does codex delete permanently delete the session from both local storage and my OpenAI account/server-side data, or does it only remove the local session file? If it is local-only, how can users permanently delete the corresponding account-side Codex data?
@etraut-openai Are you sure it supports deletion? Why didn't I find the delete button for my latest VSCode plugin(9.6---26.901.22334), or was it only for archiving
Activity
LevYas commentedon Jan 29, 2026
Very strange that this is not a basic feature by default, I'd rather have delete than archive.
Linking the discussion, quite a lot of people requested this #1442
djrarky commentedon Jan 29, 2026
Surely this is a breach of GDPR?
quantuminformation commentedon Jan 29, 2026
what was the thought process with no delete?
Jerryx0709 commentedon Feb 6, 2026
Still nothing?
femibadmus-tolaram commentedon Feb 11, 2026
bro, just let me delete this chat before i go
etraut-openai commentedon Feb 11, 2026
If you're concerned about clutter in the UI, you can use the existing "Archive" command.
All session data is stored locally in the
~/.codex/sessionsdirectory. You can delete them manually if you want. Totally under your control.Jerryx0709 commentedon Feb 11, 2026
Still though, the things are still there and I can still see my message history even after deleting the file (For some reason)
etraut-openai commentedon Feb 11, 2026
Did you restart the extension after deleting the file?
Jerryx0709 commentedon Feb 11, 2026
Yeah, I noticed it only after I restarted for the update. Still, makes no sense that we can’t just delete it from the Ui but we can just do it by deleting the file. Why not making our lives easier?
liraz747 commentedon Feb 16, 2026
I'm very confused- if you can manually delete it, why not also make it a built-in option in the app to make it easier for users? It's a very simple action that's expected to be in the UI and not something you're supposed to be doing manually, and I'm pretty sure it's just a few lines of code to add that option in the UI to the context menu since it's really just deleting a file
I'm sure everyone using Codex would appreciate if you could add this simple feature
mkormendy commentedon Feb 18, 2026
Why not develop an action in your project that allows you to delete them? I just ran this prompt in my project and it produced quite a nice little script that I add to my project's specific actions.
Generate a user interface in the style of Codex CLI as a bash script that I can use to select the different threads in a project's session folder in Codex and delete it. Be sure to retrieve the name of the thread like it appears in Codex or the user prompt so I can identify it easilydjrarky commentedon Feb 23, 2026
@etraut-openai - perfect, how do I delete that on codex web however?
liraz747 commentedon Feb 23, 2026
Thanks for the idea :) but I'm just really confused about why it isn't built in
mikiTesf commentedon Mar 8, 2026
I hope this also means we get a new slash command for the CLI that does the same. Something like
/deletethat prompts for confirmation before erasing.aleburato commentedon Mar 15, 2026
Guys this is needed. It's slowing down codex after a while. I just had to delete manually 1GB of archived crap from the sqlite DB. Codex helped me, but still...
haritn commentedon Mar 27, 2026
Codex itself can fix a thread that is attached to the wrong workspace/project, or delete it. Feed below instructions to Codex, which was also generated by Codex !!! Worked for me charmingly!.
Prompt for Codex:
You are going to rehome or remove a Codex desktop thread using local Codex storage. Be careful and back up everything before editing.
Goal:
What to inspect:
~/.codex/session_index.jsonl~/.codex/sessions/.../rollout-<...>.jsonl~/.codex/state_5.sqliteFor move/rehome:
~/.codex/session_index.jsonl.~/.codex/sessions/.~/.codex/state_5.sqlitecwdwith the new workspace path everywhere it appears.~/.codex/state_5.sqlite, update the row in thethreadstable for that thread:cwdto the new workspacegit_sha = NULLgit_branch = NULLgit_origin_url = NULLthreadsrowcwdlines from the session fileSQL template:
hongfayette commentedon Apr 10, 2026
I also wonder how...
femibadmus-tolaram commentedon May 27, 2026
I am here again please let me just delete my conversation
femibadmus-tolaram commentedon May 27, 2026
okay guys its available on codex its self
AbubakarMahmood commentedon Jul 31, 2026
Windows reproduction: mixed local Codex tasks and account-backed ChatGPT chats
I can still reproduce a related gap in Codex desktop
26.721.11231.0on Windows.The Recents list mixes two different backing types without showing the distinction:
~/.codexrollouts/state; andFor an account-backed ChatGPT conversation:
This makes the advice to delete
~/.codex/sessionsincomplete for the current desktop app: that can address a local Codex rollout, but it does not delete an account-backed ChatGPT conversation, and manual file/SQLite surgery risks leaving local indexes inconsistent.Expected behavior:
This is not a request for a duplicate issue; it is a Windows reproduction and a mixed-backing case for this existing issue.
etraut-openai commentedon Aug 16, 2026
Session deletion is now supported in the IDE Extension.
jtripppiie commentedon Aug 30, 2026
@etraut-openai Does codex delete permanently delete the session from both local storage and my OpenAI account/server-side data, or does it only remove the local session file? If it is local-only, how can users permanently delete the corresponding account-side Codex data?
wssf812 commentedon Sep 6, 2026
@etraut-openai Are you sure it supports deletion? Why didn't I find the delete button for my latest VSCode plugin(9.6---26.901.22334), or was it only for archiving