Skip to content

project: no delete/archive operation; projects removed in app still listed by CLI /projects #56964

Closed as duplicate

Description

@LuisRodOnCCS

Summary

There is no way to delete or archive a project. Projects removed in the app still appear in the CLI /projects list because the server keeps the project row.

Environment

  • opencode version: 2.0.32
  • OS: Microsoft Windows 10 Home Single Language (NT 10.0.19045.0, win32 x64)
  • Terminal: mintty (Git Bash), TERM=xterm-256color, TERM_PROGRAM=mintty
  • Shell: Bash (C:\laragon\bin\git\usr\bin\bash.exe)
  • Install/channel: latest (local install via npm/node)
  • Active plugins: opencode-synced

Reproduction

  1. Open the OpenCode app and remove/delete a project from its list.
  2. Open the CLI and run /projects.
  3. The removed project still appears.

Expected Behavior

Deleting/archiving a project in the app should remove it from the shared project list (or the CLI should expose a delete/archive operation).

Actual Behavior

The project remains in GET /api/project and in the CLI /projects list. The API only exposes GET and PATCH for projects; there is no DELETE/archive endpoint.

Additional Context

Verified against the running server's OpenAPI spec: /api/project (GET) and /api/project/{projectID} (PATCH) only. DB table project retains rows even after app-side removal.

Activity

  1. opencode-agent commented on Oct 19, 2026

    @opencode-agent
    Contributor

    Thanks for the clear report and for checking the OpenAPI spec!

    I think this is a duplicate of #51197. It reports the same root problem: the server exposes only GET /api/project and PATCH /api/project/{projectID}, with no delete or archive operation. Because of that, project rows stay in the database and keep showing up in client project lists. Current code only archives projects automatically when their folder no longer exists (#54354). There is still no way to delete or archive a project yourself.

    Possible duplicates and closely related issues, ordered from most to least likely:

    The bot will close this issue as a duplicate in 1 day unless you reply explaining how your problem is different.

  2. opencode-agent commented on Oct 20, 2026

    @opencode-agent
    Contributor

    We haven't heard back, so I'm closing this as a duplicate of #51197. That issue covers the same problem: there is no way to delete or archive a project, so removed projects stay in the database and in client lists like the CLI /projects.

    To follow progress:

    If your case turns out to be different, reply here and explain how, and we can take another look. Thanks again for the detailed report!

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions