---
title: "Clear Graph"
method: POST
path: "/api/knowledge-graph/clear"
tags: ["knowledge-graph", "knowledge-graph"]
---

# Clear Graph

`POST /api/knowledge-graph/clear`

## Request

- Base URL: `https://api.dialogbrain.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.dialogbrain.com/api/knowledge-graph/clear`
- Auth: none declared

Delete the workspace's entire knowledge graph.

Owner-only — destructive and irreversible. Everything that references
kg_entities (kg_facts, kg_relationships, kg_chunk_entities,
kg_entity_tags, kg_entity_merges, kg_duplicate_suggestions) is
ON DELETE CASCADE, so one parent DELETE clears the graph. Pending
extraction-queue rows are removed too so a queued backlog doesn't
repopulate the graph right after the wipe. Source rag_chunks are
untouched — "Extract Entities" can rebuild the graph on demand.

## Response `200`

Successful Response

- unknown

---

[API](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway.md) · [All operations](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway/llms.txt) · [OpenAPI document](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway/revisions/d84e7dc9977d?raw)
