memory_graph_purge
Irreversibly purges all graph nodes and edges for one exact project after a matching live inventory and required audit reason; no dry run, and it fails on dirty or changed snapshots.
Instructions
Irreversibly purge graph records for one exact project with a required audit reason. First obtain the complete live nodeIds/edgeIds inventory using memory_graph_query; a clean snapshot covering at most 500 nodes and 1000 edges across the graph is required. Inventories must match exactly; an empty project, partial/dirty/reset snapshot, changed records or oversized physical project fails with {success:false,error}. There is no dry run. Deletes project nodes including stale rows, incident/project edges, their edge history, indexes and archive metadata; preserves sessions, observations, memories and lessons. Returns {success,project,auditId,nodesDeleted,edgesDeleted,liveNodesDeleted,liveEdgesDeleted,archiveStatesRemoved,nodeIds,edgeIds,remainingNodes,remainingEdges}. Physical counts may exceed supplied live counts. Use memory_graph_provenance_reconcile for selective provenance correction or reversible edge retirement.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | Yes | Required audit reason for the destructive purge | |
| edgeIds | Yes | Exact complete live edge ID inventory returned for this project | |
| nodeIds | Yes | Exact complete node ID inventory returned for this project | |
| project | Yes | Exact registered project identifier |