Brain Docs

Reference

Python SDKInstallationHTTP clientWire clientSync vs async
create_relationget_relationlist_relationstraverse_relationssupersede_relationtombstone_relation
ErrorsRetriesPagination
Brain/Docs
✦ ASKBrain on GitHubDashboard
Python SDKRelationstombstone_relation

tombstone_relation

Retire a relation with no replacement. There is no retract equivalent — and here is why.

PURPOSE

Retire a relation with no replacement. The record stays.

DELETE/v1/relations/:idBearer API keystable
tombstone_relation(relation_id: str, reason: str | None = None) -> TombstoneResult
Handshake credentialstable
tombstone_relation(request: RelationTombstoneRequest) -> RelationTombstoneResponse

Parameters

ParameterTypeRequired
relation_idstringrequired

The relation to retire.

reasonstringoptional

Recorded with the tombstone.

Returns

FieldTypePresence
tombstoned_at_unix_nanos64-bit integeralways

When it was retired.

There is no retractRelation

Statements have a retract verb because they can carry free text that an erasure request must destroy. A relation is two entity ids, a type and an interval — there is nothing to zero, so tombstoning is the whole lifecycle.

On the wire

Entity ids are UUID bytes, properties is a propertiesBlob, and evidence is a single reference rather than an array. Every request carries a requestId plus an optional actAs.

See also
supersede_relationtombstone_entity

Was this page helpful?

supersede_relation

Replace a relation with a new version, keeping the chain readable.

get_schema

Read the active schema document, or a specific version of it.

On this page

ParametersReturnsOn the wire
Suggest an editOpen in Playground