Skip to content

(sidebar): delete a project folder, choosing what goes with it #474

Closed

Description

@jbr-sekoia

Request

A delete (trash) button on a project folder in the sidebar, for folders that are not worth keeping, such as scratch directories. It opens the same checkbox modal as the folder archive of #473, with what to delete:

  • the project's sessions: delete them, or leave them archived;
  • the project's settings;
  • the project's schedule files;
  • the sessions' transcripts (~/.claude/projects/<folder>/), which also removes them from claude --resume.

The project's own directory on disk is never offered. The folder leaves Switchboard.

Current state (375decb)

  • The only removal is Hide Project at the bottom of the project settings (public/settings-panel.js:424, handler :684), which calls remove-project (main.js:741): the project goes into hiddenProjects, its settings are deleted (deleteSetting('project:' + projectPath)), its cache and search index are dropped, and it leaves the schedule registry. Transcripts stay on disk. The confirmation says only that the project is hidden and session files are kept.
  • The worktree header has a Hide worktree button calling the same IPC (public/sidebar.js:1163).

Decisions taken

The specification, with acceptance criteria, follows in a comment once it has been reviewed.

Activity

  1. devsuitup commented on Oct 28, 2026

    @devsuitup
    Owner

    Codex rows (#821): delete through sessionFile, never a $CODEX_HOME date folder. Also coordinate with the worktree-delete issue from #831.

  2. devsuitup commented on Oct 28, 2026

    @devsuitup
    Owner

    Coordinate with #841 (worktree delete dialog forces only what it showed): one removal rule for both.

  3. devsuitup commented on Nov 10, 2026

    @devsuitup
    Owner

    Q3 decided by the maintainer on 2026-11-10: the project-delete dialog will also offer, as an option, removal of linked worktrees from disk, each one individually previewed and selected (spec slice E, after A4).

  4. 24 remaining items

  5. devsuitup commented on Nov 13, 2026

    @devsuitup
    Owner

    Done in v0.0.106 (beta): #1093, #1095, #1096, #1098, #1104 and #1105. Follow-up: #1106.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions