Delete Memory Entry
vault_delete_memoryDelete 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
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | ISO YYYY-MM-DD date of the entry (e.g. "2026-05-01"). | |
| file | Yes | Memory file name without .md (e.g. "Principles"). Use the exact letter case. | |
| entry | Yes | Exact entry text, without the "- **YYYY-MM-DD**: " prefix or bullet. | |
| section | Yes | H2 section heading containing the entry. Matched case-insensitively, with or without the "(newest first)" suffix. |