Skip to content

delete_entity

Delete a memory entity outright — the escape hatch for ‘created it by accident’, NOT the primary retirement path (use rename_entity’s status param to retire instead; that stays reversible, this doesn’t). Destructive; requires confirmation. Dependency-aware like forget: refuses when the entity has any relation, incoming or outgoing, unless cascade is set — in which case those relations are removed too and every OTHER materialized entity that referenced this one has its note re-materialized so its [[links]] stop dangling. The entity’s own note is trashed (recoverable) unless permanent is set.

Domain knowledge
Scopes delete:memory
Access destructive
Tags writes, destructive, hitl, domain:knowledge
Profile core, full
Annotation Value
Read-only no
Destructive yes
Idempotent no
Accepts an idempotency key no

Idempotent is the advisory MCP idempotentHint. Destructive is also yes for a tool that asks for confirmation only on some calls.

A single-use elicit_token (or a transport-verified confirmation) is required on every call.

  • The confirmation binds to a fingerprint of the state being approved, so a confirmation given for since-changed state is refused with replay_drift.
Parameter Type Required Default Description
vault string — Vault id. May be omitted when only one vault is available. length 1–64; pattern ^[a-z0-9_-]+$
entity_id string yes — length ≥ 1
cascade boolean false —
permanent boolean false —
Field Type Always present Description
entity_id string yes —
deleted boolean yes —
relations_deleted number yes —
vault_path string | null yes —
permanent boolean yes —
trashed_to string | null yes —

Other tools in the knowledge domain: add_observation, audit_provenance, close_goal, commit_capture, commit_wiki_page, create_entity, diagnose_retrieval, draft_wiki_page, end_session, enqueue_capture, episode_stats, explain_answer, find_existing_page, gap_report, get_entity, get_session_traces, knowledge_challenge, link_entities, lint_wiki, list_capture_queue, list_contradictions, list_goals, note_quality_report, plur_get, plur_recall, plur_recall_hybrid, plur_similarity_search, query_entity_graph, record_retrieval_feedback, reflect, rename_entity, session_bootstrap, set_goal, start_session, unlink_entities, update_observation, vault_context, vault_graph_search, work_episode_chain, work_episodes, work_forget, work_result, work_search.

Back to the tool catalog.