Skip to content

feat(cli): add delete commands for prompts, sessions, and projects #219

@egdev6

Description

@egdev6

📋 Pre-flight Checks

  • I have searched existing issues and this is not a duplicate
  • I understand this issue needs status:approved before a PR can be opened

🔍 Problem Description

Engram's CLI delete surface is still incomplete for administrative cleanup beyond observations.

Observation deletion is already being tracked separately in #209 and currently has work in progress via PR #211. However, there is still no coherent CLI story for deleting prompts, sessions, and eventually whole projects.

That leaves users in an awkward state:

  • prompt and session deletes exist through store/server internals, but not as first-class CLI commands
  • project cleanup currently relies on engram projects prune for empty projects only
  • whole-project deletion would require the lower-level capability proposed in feat(store): add whole-project cascade delete API #218, but there is no tracked CLI follow-up for exposing it once approved

💡 Proposed Solution

Add a consistent CLI family for destructive delete operations beyond observation delete.

Suggested shape:

engram delete prompt <id>
engram delete session <id>
engram projects delete <project>

Notes:

Expected behavior:

  • prompt delete removes a prompt by ID
  • session delete removes an empty session according to existing safety rules
  • project delete removes a full project only once the underlying API/store capability exists

📦 Affected Area

CLI (commands, flags)

🔄 Alternatives Considered

📎 Additional Context

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