Project list shows deleted projects that cannot be removed
Status Closed — not planned
Maintainer reply None cached
Workaround ✓ Mentioned in thread ↓
Activity 12 comments · opened Mar 30, 2026 · closed Jun 12, 2026
Bug Description
When a project folder is deleted from disk, the project continues to appear in the project switcher dropdown and cannot be removed.
Steps to Reproduce
- Open any project in Claude Code
- Delete the project folder from disk
- Reopen Claude Code — the deleted project still appears in the project list
Expected Behavior
Deleted projects should be removed from the list automatically, or there should be a way to manually remove individual projects from the list.
What I Tried
- The entry is not present in
~/.claude.jsonor~/.claude/projects/ - Deleting
~/Library/Application Support/Claude/Local Storage/leveldb/clears the list but also resets UI settings (theme etc.) - Even after clearing leveldb, the ghost project reappears after relaunch
Platform
macOS 15.3, Claude Code desktop app
Showing cached comments. Read the full discussion on GitHub ↗
11 Comments
Found 3 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
Closing as duplicate of #35187. Adding my repro details there instead.
Just wanted to flag that similar issues (#35187, #34115, #30605) have all been closed as duplicates, yet the underlying problem remains unsolved. There is still no way to remove individual projects from the recent projects list in Claude Code desktop app. Keeping this issue open in hopes it gets proper attention.
Also opened #40842 to flag a process issue: the duplicate detection system is closing valid bug reports without verifying that the referenced issues were actually resolved. In this case, all three duplicate references (#35187, #34115, #30605) are themselves closed — not because the bug was fixed, but because they were also marked as duplicates. The actual bug (no way to remove projects from the recent list) remains unresolved.
I edited ~/.claude/history.jsonl, which removed the CLI history, but it did not affect the desktop app’s project list. That list appears to be stored in LevelDB, which does not seem safe to modify manually.
Remove a Project from Claude Code Project List
Clean up these 4 locations, then restart:
1.
~/.claude/sessions/*.jsonDelete any session file with
"cwd"pointing to the project path.2.
~/.claude/history.jsonlRemove lines with
"project":"/path/to/your/project".3.
~/.claude.jsonRemove the project config block under the
projectskey (search for your project path).4. Desktop app session file (the key one)
~/Library/Application Support/Claude/claude-code-sessions/<org-id>/<user-id>/
Find and delete any
.jsonfile where"cwd"matches your project path. The desktop app builds its project dropdown from sessioncwdfields.5.
~/.claude/projects/Delete the project directory if it exists (path encoded with dashes, e.g.
/Users/foo/MyProjectbecomes-Users-foo-MyProject).Then restart
Quit Claude desktop (Cmd+Q) and reopen.
Thanks for the detailed steps! I tried all 5 locations you mentioned:
~/.claude/sessions/— No session files referencing the deleted project were found.~/.claude/history.jsonl— No references found.~/.claude.json— Found and removed the project entry under theprojectskey. ✅~/Library/Application Support/Claude/claude-code-sessions/) — The directory was empty, no session JSON files found.~/.claude/projects/— No directory existed for this project.After removing the entry from
~/.claude.json, the project still appeared in the list. So I went further:~/Library/Application Support/Claude/Local Storage/leveldb/— Found a "website" reference in002173.logviastrings. Deleted the entireleveldb/directory, restarted the app. UI settings reset (theme went back to default), but the project still shows up in the list.~/Library/Application Support/Claude/withstrings | grep "website"— found hits inCache/Cache_Data/,Code Cache/js/, andIndexedDB/but these seem to be generic web content caches, not project config.The project entry seems to persist somewhere I haven't been able to locate. The project directory (
~/Desktop/website) was already deleted. Quit and relaunched the app (Cmd+Q) after each attempt. Could it be synced from the server side (claude.ai account)?Paste the full content of the post “Remove a Project from Claude Code Project List” into your Claude Desktop Code window. Add one additional line: “Save it as /removet-project skill”, then submit it.
Next, type /removet-project and select the project you want to remove. After that, quit and restart Claude Desktop to confirm that the project has been removed from the list.
Description
There is no UI option to remove a cloud/GitHub-linked project from the Claude Code project dropdown — in either the desktop app or the claude.ai/code web interface.
Steps to Reproduce
Current Workaround
The only way to remove the project is to:
This is tedious and non-obvious. Users would not discover this on their own.
What Doesn't Work
~/.claude/sessions/,~/Library/Application Support/Claude/claude-code-sessions/)~/Library/Application Support/Claude/Local Storage/leveldb/)~/.claude.jsonor~/.claude/projects/All of these get re-synced from the cloud on next app launch.
Expected Behavior
Environment
This continues in the current Claude desktop app. Some days, when you start up, you can't get the little X to delete the project document from the sidebar, and there's no other way to do it. Sometimes rebooting the app helps. This is using Mac Desktop Claude 1.7196.0 (2dbd78) 2026-05-12T05:34:40.000Z and 26.5 (25F71) - It's a very annoying bug because it immediately impacts the workflow of downloading a new document and then re‑uploading it to the project documents.
Closing for now — inactive for too long. Please open a new issue if this is still relevant.