Skip to main content
Glama
Vault Cortex Obsidian MCP Server

Vault Cortex Obsidian MCP Server

Delete Memory Entry

vault_delete_memory
Destructive

Delete a single dated entry from an About Me memory file by file, section, date, and exact text, for correcting wrong entries or pruning expired items in living-policy files.

Instructions

Delete a single dated entry from a memory file in About Me/.

Example: vault_delete_memory({ file: "Opinions", section: "Tools and workflows (newest first)", date: "2026-05-01", entry: "Prefer X over Y" }) Example: vault_delete_memory({ file: "Routines", section: "Daily/weekly rhythm (newest first)", date: "2026-03-10", entry: "Gym Tue/Thu at 7am" }) — prune an expired entry from an entry-policy: living file

When to use: Removing an entry that was wrong when it was written. Memory files are append-only by default, so do NOT delete to reflect a change: append the new state via vault_update_memory instead. The exception is a file whose properties declare entry-policy: living (check via vault_list_memory_files) — a current-state file where deleting an expired entry is the intended maintenance. Call vault_get_memory(file, section) first to see exact entry text for matching. Prefer vault_delete_note for deleting whole notes; it refuses protected paths, About Me/ among them.

Parameters:

  • date + entry together pick the bullet line within the given section; identical copies make the match ambiguous. The entry text matches the bullet's first line only.

  • section scopes the match — an identical entry under a different heading is not found.

Behavior: The delete also removes the lines that continue the matched entry.

Errors:

  • "memory file not found" — call vault_list_memory_files to discover valid names.

  • "memory file must not start with a dot" / "… must be a bare name without path separators" / "… must be named without .md" — each message names the part of the name to drop

  • "date must be YYYY-MM-DD" — pass the entry's date exactly as the file shows it, zero-padded.

  • "section not found: …" — no H2 heading matches; the message lists the file's sections

  • "no entry matching …" — verify the exact text with vault_get_memory(file, section).

  • "ambiguous: N entries match …" — remove the extra copy with vault_delete_span (first_match: true) or a manual edit, then retry.

  • "refusing memory write: … would shrink content" — the delete would remove more than half the file; re-read it with vault_get_memory, and remove an entry that really is that large with vault_delete_span or a manual edit.

  • "cannot read memory file …" — the file can't be read: check file against vault_list_memory_files and shorten an over-long name; otherwise ask the vault's owner to fix its permissions

  • "ENAMETOOLONG: …" or another filesystem error — the message says what to do

  • "memory file …: the note would open with a properties block …" — saving would turn the file's opening lines into a properties block the server can't keep; the error says how to avoid it

Returns: "Deleted entry from About Me/.md → ## ".

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "file": "<file>",
      "section": "<section>",
      "date": "<date>",
      "entry": "<entry>"
    },
    "name": "vault_delete_memory"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateYesISO YYYY-MM-DD date of the entry (e.g. "2026-05-01").
fileYesMemory file name without .md (e.g. "Principles"). Use the exact letter case.
entryYesExact entry text, without the "- **YYYY-MM-DD**: " prefix or bullet.
sectionYesH2 section heading containing the entry. Matched case-insensitively, with or without the "(newest first)" suffix.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.55.1
    • changedInput schema / properties / date / description
      Previous value: -"ISO YYYY-MM-DD date of the entry (e.g. \"2026-05-01\"). Must match the date shown by vault_get_memory."New value: +"ISO YYYY-MM-DD date of the entry (e.g. \"2026-05-01\")."
    • changedInput schema / properties / entry / description
      Previous value: -"Exact entry text as shown by vault_get_memory — without the \"- **YYYY-MM-DD**: \" prefix or bullet."New value: +"Exact entry text, without the \"- **YYYY-MM-DD**: \" prefix or bullet."
  2. Changed1 schema field changedv0.54.16
    • addedInput schema / additionalProperties
      Added value: +false
  3. Changed1 schema field changedv0.54.9
    • changedInput schema / properties / entry / description
      Previous value: -"Exact entry text as shown by vault_get_memory — without the \"- **YYYY-MM-DD**: \" prefix or bullet. Both date and entry must match for deletion."New value: +"Exact entry text as shown by vault_get_memory — without the \"- **YYYY-MM-DD**: \" prefix or bullet."
  4. Changed2 schema fields changedv0.54.7
    • addedInput schema / properties / entry / minLength
      Added value: +1
    • changedInput schema / properties / file / description
      Previous value: -"Memory file name without .md (e.g. \"Principles\")"New value: +"Memory file name without .md (e.g. \"Principles\"). Use the exact letter case."
  5. Changed2 schema fields changedv0.26.0
    • addedInput schema / properties / file / minLength
      Added value: +1
    • addedInput schema / properties / section / minLength
      Added value: +1
  6. Changed2 schema fields changedv0.23.5
    • changedInput schema / properties / date / description
      Previous value: -"ISO YYYY-MM-DD date of the entry"New value: +"ISO YYYY-MM-DD date of the entry (e.g. \"2026-05-01\"). Must match the date shown by vault_get_memory."
    • changedInput schema / properties / entry / description
      Previous value: -"Exact entry text (no date prefix or bullet)"New value: +"Exact entry text as shown by vault_get_memory — without the \"- **YYYY-MM-DD**: \" prefix or bullet. Both date and entry must match for deletion."
  7. Changed1 schema field changedv0.22.1
    • addedInput schema / properties / date / minLength
      Added value: +1
  8. Changed1 schema field changedv0.19.2
    • changedInput schema / properties / section / description
      Previous value: -"H2 section heading containing the entry"New value: +"H2 section heading containing the entry. Matched case-insensitively, with or without the \"(newest first)\" suffix."
  9. Added

TDQS

A4.6/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare destructiveHint=true, but the description adds substantive behavior beyond them: the delete also removes continuation lines of the matched entry, identical copies produce an ambiguity error, and a safety guard refuses writes that would shrink the file by more than half. The error catalogue covers name validation, date format, missing sections, and filesystem failures, plus the exact return string.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose and the append-only rule are front-loaded ahead of examples and parameters, and the Returns line is a clean single sentence. The error section is exhaustive to the point of bloat — many filesystem messages could be summarized as 'the message names what to fix' rather than enumerated one by one.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 4-required-parameter destructive mutation with no output schema, the definition covers matching rules, the safety guard, recovery paths for every failure mode, and the return value. An agent has everything needed to call it correctly and to recover from errors without guessing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline applies, and the description does add matching semantics: date+entry jointly select the bullet, entry matches only the bullet's first line, and section scopes the match so an identical entry under another heading is not found. That is real added meaning, but it largely restates the schema's own parameter descriptions (entry 'without the prefix', section 'with or without (newest first)'), so it lands near baseline rather than above it.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Delete a single dated entry from a memory file in About Me/') and immediately bounds the scope to one bullet entry, which separates it from vault_delete_note (whole notes) and vault_delete_span (arbitrary ranges). The two concrete call examples make the target unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly states when to use (entry wrong when written), when NOT to use (memory files are append-only by default — append via vault_update_memory instead), and the single exception (`entry-policy: living` files, checked via vault_list_memory_files). It also routes whole-note deletion to vault_delete_note and tells the agent to call vault_get_memory first for exact text matching.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.