Skip to content

[FEATURE]: Add ability to delete projects in OpenCode Desktop #28030

Closed as not planned

Description

@kadeshar

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

OpenCode currently has no way to delete a project from the Desktop application. Users can list, create, and update projects, but there is no delete option in the UI. This leaves stale project entries that cannot be cleaned up without manual SQLite manipulation.

I've verified that #25004 (which proposed the backend DELETE /project/:id endpoint) was closed for not following contributing guidelines, and #8083 and #15694 (similar requests) are also closed. The backend API for project deletion may not yet be implemented, but this issue is specifically about adding a UI feature in the Desktop app that allows users to delete projects they no longer need.

What I'm asking for:

  1. A delete button or option in the Desktop
  2. A confirmation dialog before deletion to prevent accidental data loss
  3. The deletion should cascade to remove associated sessions, messages, and related data

Why this is needed:

Activity

  1. github-actions commented on May 17, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

  2. sparrowhaydnn commented on May 17, 2026

    @sparrowhaydnn

    You could just delete the individual sessions. The project is just like the folder in which you are working so I think it was right that the sessions alone are the ones which are deletable. But it will be a nice feature in a sense that, you can delete all sessions at once

  3. kadeshar commented on May 17, 2026

    @kadeshar
    Author

    First issue is about sessions
    Second issue is about workspaces
    Both are not related with projects.

    From desktop perspective you can only archive sessions

  4. sparrowhaydnn commented on May 17, 2026

    @sparrowhaydnn

    Did you check the latest version, cos you can actually delete a session now. Click on the 3 dots when you open a session and then you will see delete

  5. kadeshar commented on May 18, 2026

    @kadeshar
    Author

    Ok, i expected that near archive icon. My bad.
    Still that is not solution or workaround. When i delete all session project on left toolbar still persist and cant be deleted

  6. github-actions commented on Jul 18, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

  7. trackme518 commented on Sep 21, 2026

    @trackme518

    When changing the directory name (ie folder name) that was declared as project in opencode desktop that leads to corrupted workspace - now i can not add the newly renamed folder as new project and reveal in finder does not work - delete project is needed

  8. FranciscoKnebel commented on Sep 29, 2026

    @FranciscoKnebel

    My use case was a clone to the same project inside another subdirectory. I had (wrongly) selected that folder as the project in opencode.

    That folder has now been deleted. Removing the project in the app and creating a new one (pointed to the correct folder) just references the old project, with no way to clear.
    This is also breaking any calls, because it keeps trying to use the folder from the previous project.

    Naming the folder to something else and pointing a new project to it is not enough, it's still pointing to sessions from the previous project.

    Had to resort back to using the CLI.

  9. garawaa commented on Nov 5, 2026

    @garawaa

    still did not fixed it.

  10. kadeshar commented on Nov 5, 2026

    @kadeshar
    Author

    Yeap, i should say is pretty basic feature to not get mess in projects.

  11. azadshaikh commented on Nov 6, 2026

    @azadshaikh

    This is a imp feature. Please implement this.

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions