How do I delete Claude Code sessions in the browser or desktop app?
Claude Code sessions started from the web, mobile, or desktop app can be archived, but there is no visible way to delete them. A user reports that a delete button later appeared in the web UI, but the request returns a 404 not_found_error. Local sessions from the CLI or VS Code extension have a different workaround.
Originally asked on GitHub: https://github.com/anthropics/claude-code/issues/13514
5 answers
Status: the issue was closed as completed, but the thread reports that deleting online sessions still does not work reliably. A February 2026 comment says a delete button appeared in the web UI, but the request returns a 404 not_found_error.
For local sessions (Claude Code CLI or the VS Code extension), a commenter said session data is stored under ~/.claude/projects. Running the following removes all local projects:
rm -rf ~/.claude/projects/*To remove only one directory's sessions, find that project's folder name inside ~/.claude/projects and delete just that folder. Another commenter replied that this command does not work for online Claude Code sessions.
A commenter also pointed to a third-party wrapper, x-cmd, which says it supports listing, deleting, and restoring Claude Code sessions. The thread does not verify how it behaves.
Security note: deleting files under ~/.claude removes local session data, so back up anything you need first.
Did this work for you?What @duan-contek tried on GitHub (Partly worked)
A commenter ran rm -rf ~/.claude/projects/* to remove all local projects, or deleted a single project's folder inside ~/.claude/projects.
Source: https://github.com/anthropics/claude-code/issues/13514#issuecomment-3709753641 (opens external site)
Did this work for you?What @mkalam-cloudzero tried on GitHub (Didn't work)
A commenter tried the same ~/.claude/projects removal for online sessions and reported that it does not work for Claude Code online.
Source: https://github.com/anthropics/claude-code/issues/13514#issuecomment-3720027651 (opens external site)
Did this work for you?What @lunrenyi tried on GitHub (Outcome unclear)
A commenter pointed to the x-cmd wrapper, which claims to support deleting, listing, and restoring Claude Code sessions via its cookbook page.
Source: https://github.com/anthropics/claude-code/issues/13514#issuecomment-3798280468 (opens external site)
Did this work for you?What @bradical tried on GitHub (Outcome unclear)
A commenter asked how .claude/session-env/ differs from ./claude/projects, without a reported answer.
Source: https://github.com/anthropics/claude-code/issues/13514#issuecomment-3862577807 (opens external site)
Did this work for you?