You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There's no way to delete a note from the CLI. bm tool surfaces write-note, read-note, edit-note, build-context, recent-activity, search-notes, etc., but delete-note is missing — even though the underlying delete capability is fully implemented everywhere else:
MCP tool: src/basic_memory/mcp/tools/delete_note.py (registered in mcp/tools/__init__.py)
API: DELETE /v2/projects/{project_id}/knowledge/entities/{entity_id} and POST .../delete-directory (api/v2/routers/knowledge_router.py)
Add a delete_note command to src/basic_memory/cli/commands/tool.py, following the existing edit_note / write_note command pattern (around tool.py:182). It should delegate to the existing delete_note MCP tool so behavior matches the agent path exactly.
Suggested surface:
bm tool delete-note "Note Title" (by title or permalink)
--is-directory flag to delete a directory (the MCP tool already supports is_directory)
--project / --project-id options, matching the other bm tool commands
--output-format text|json, consistent with the rest
Notes
This is purely a CLI wiring task — no service/API changes needed.
Worth confirming whether move-note is similarly missing from the CLI while we're here (it appears not to be surfaced either), though that's out of scope for this issue.
Activity
claude commentedon Jun 1, 2026
Claude finished @groksrc's task in 2m 33s —— View job
Analysis & Implementation Plan
Type: Feature request (CLI wiring — no service/API changes needed)
Priority: Medium | Component: CLI | Complexity: Simple
Todo List
tool.pyto understand CLI patternsdelete_note.pyMCP tool to understand parametersdelete_noteCLI command intool.pymove_noteis also missing from CLI — confirmed missing, but out of scope per issuedelete_noteintest_cli_tool_json_output.pyjust fast-check— skipped (no shell execution permissions)What Was Implemented
src/basic_memory/cli/commands/tool.pyfrom basic_memory.mcp.tools import delete_note as mcp_delete_noteimportdelete_notecommand registered as"delete-note"ontool_appidentifier(positional),--is-directory,--project,--project-id,--local,--cloudedit_note/write_note— delegates to MCP tool withoutput_format="json", checks forerrorkey, exits 1 on errortests/cli/test_cli_tool_json_output.pyDELETE_NOTE_RESULTandDELETE_DIRECTORY_RESULTmock data--is-directory, not-found (deleted=False), error response (exit 1),--project-idpassthroughNotes
move_noteis also absent frombm tool(confirmed), but that's a separate issue per the requester