Knowledge Base Graph

Delete ALL nodes and edges in a KG

Changed on

Clears the knowledge graph: every node and every edge (projected, bootstrapped, and manually created alike) is deleted. Documents, their visual components, and package subscriptions are untouched, so a subsequent initialize/project starts from a clean slate. If extraction provenance, current/historical claims, or resolutions exist, the request returns 409 unless discard_evidence=true explicitly permits their permanent deletion. Export an archive before discarding them.

delete/api/v0/knowledge-bases/{kb_id}/graph/nodes

Request

Path parameters

kb_idstring uuid required

Query parameters

discard_evidenceboolean

Explicitly and permanently delete all extraction runs, extraction sources, current or historical attribute claims, and fact resolutions with the graph.

Response

Successful Response

nodes_deletedinteger required
edges_deletedinteger required

Changes