Skip to content

Enhancement: Add apc memory remove command to delete individual cache entries #48

@FZ2000

Description

@FZ2000

Summary

There is an apc mcp remove command to delete MCP server entries from the cache, but no equivalent command for memory entries. Power users who want to clean up stale, test, or unwanted memory entries from the cache have no way to do this short of directly editing ~/.apc/cache/memory.json.

Motivation

During testing, I accumulated 195 old-format memory entries from Docker integration tests (apc memory add calls). There is no way to remove these without hand-editing JSON.

More generally, users may want to:

  • Remove a specific collected memory file they no longer want synced
  • Remove manually-added entries (apc memory add) that are outdated
  • Clean up entries left over from tools they've uninstalled

Expected Interface

# Remove by entry ID
apc memory remove <id>

# Interactive selection (like apc mcp remove)
apc memory remove

# Remove all entries from a specific tool
apc memory remove --tool openclaw

# Clear all legacy (entry_id schema) manual entries
apc memory remove --legacy

Related

Environment

  • macOS Darwin 25.2.0 (arm64)
  • apc version 0.1.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions