API Reference

hm_forget

Delete a node from the hypergraph

hm_forget

Remove a node and optionally cascade-delete all edges that reference it.

Parameters

ParameterTypeDefaultDescription
keystrrequiredNode key to delete
cascadeboolTrueAlso delete edges that include this node

Response

Confirms deletion. If cascade is true, reports the number of edges removed.

Example

{
  "key": "decision_old_auth",
  "cascade": true
}

CLI equivalent

hm forget decision_old_auth --cascade

REST endpoint

POST /api/v1/memory/forget

Deletion is permanent. The hosted service removes the node from SurrealDB, its vector from Qdrant, and cleans up related Redis state. There is no undo.