Hanzo AI
OpenapiGraph

Create erase

Removes every assertion that names an entity and returns a receipt.

POST /v1/graph/erase

Addresshttps://api.hanzo.ai/v1/graph/erase
MethodPOST
OperationgraphErase
AuthAuthorization: Bearer $HANZO_API_KEY

Removes every assertion that names an entity and returns a receipt.

It requires an admin of the organization it acts in; platform sudo is not enough, so erasure is never cross-tenant. Nothing is removed while a matching assertion is under litigation hold (409) or where the erasure cannot be recorded (503). The audit trail keeps who, when, why, how many and the receipt's digest, never the entity, and holds it before the erasure commits.

Time: erasure is the one act outside the two times. The rows go at every as_of and as_known, so no past read recovers them.

Request

2 fields, body application/json (required).

FieldInTypeRequiredDescription
entitybodystringyesEntity is the key to erase. Every assertion ABOUT it and every edge pointing AT it is removed, under every spelling it may have been filed under — its NFC key,…
reasonbodystringyesReason is why, as the audit trail will keep it — a request number, a legal basis.

Response

StatusBodyMeaning
200graph.graphEraseOutok
defaultproblem-detailsrefused

200 body — 13 fields.

FieldInTypeAlwaysDescription
atbodystringAt is the instant of the erasure, RFC 3339, and the time on its audit record.
bybodystringBy is the identity that erased — owner or owner/user — from the validated principal.
completebodybooleanComplete is true only when no store may still hold the subject: every store erased or absent and nothing Remaining.
digestbodystringDigest is SHA-256, hex, over IDs in their ascending order, each written <length>:<id> — the same content address an assertion's own ID is.
entitybodystringEntity is the key that was erased, folded as every key here is (NFC, no control characters) and echoed so a stored receipt says what it is for.
idsbodystring[]IDs are the content addresses of the assertions removed, ascending.
remainingbodyinteger (int64)Remaining is how many assertions still name the entity because one call removes at most ten thousand.
sourcesbodystring[]Sources are the documents the removed assertions were filed from.
storesbodygraph.graphStore[]Stores is every store in this deployment that may hold what the org says about the subject, and what happened in each: this graph first, then the stores this…
stores[].detailbodystringDetail says what an unsupported store is missing before an erasure could reach it.
stores[].removedbodyinteger (int64)Removed is how many of its rows were removed.
stores[].statusbodystringStatus is erased (rows naming the entity were removed), absent (it held none) or unsupported (this op cannot reach it, so it may still hold the subject).
stores[].storebodystringStore names it: graph is the caller's own (org, project) assertion file, its full-text index included; knowledge is the org's wiki pages, memories and…

Failure carries the platform error shape — see Errors.

Examples

hanzo graph erase

Graph API · All Hanzo APIs · Interactive reference

How is this guide?

On this page