Revise the map
mmap_removeRemove map elements or delete entire pages to revise a hypothesis or clean up finished work. Edits apply atomically; page deletion is permanent.
Instructions
Remove edges, nodes, groups and empty layer bands (in that order, all-or-nothing). Removing a node also removes every edge touching it; removing a group merely ungroups its members. Use when the ghost design turns out wrong — the map is a hypothesis, revising it is honest work. pages is the other scale: it DELETES whole page files, so a finished effort can be cleaned up instead of accumulating tabs forever. A bare {pages: ["slug"]} with no other field is the normal form; combined with map edits, the edits are applied first and the pages are deleted after. The deletion is permanent and cannot be undone, so delete only pages whose effort is over — and only ever with the user behind it. An unknown slug is refused with the project's real page list (naming a page that does not exist is a typo, not a request). The default page has no slug and is not deletable here. A node elsewhere still pointing at a deleted page with submap stays legal — a submap reference has no existence invariant — but it has nowhere to dive until the page comes back.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | page (parallel map) this call targets; omit for the default page. A new conversation is not a new effort. Read existing pages with mmap_read first; reuse the same page for continued work. Create a new page only for a distinct effort. | |
| edges | No | ||
| lanes | No | ||
| nodes | No | ||
| pages | No | pages to delete entirely, after this call's map edits; permanent | |
| groups | No | ||
| layers | No | ||
| deletePage | No | Delete the page targeted by page, including the default page; cannot be combined with other edits. | |
| references | No | For deletePage: reject inbound submap references by default, or explicitly keep them. | |
| expectedRevision | No | Revision from mmap_read; absent requires a new page. A stale revision returns CONFLICT. |