---
title: "Disconnect a knowledge source"
method: DELETE
path: "/api/knowledge/sources/{id}"
tags: ["Knowledge"]
---

# Disconnect a knowledge source

`DELETE /api/knowledge/sources/{id}`

## Request

- Base URL: `https://api.setluca.com`
- URL: `https://api.setluca.com/api/knowledge/sources/{id}`
- Auth: one of:
  - API key in cookie `luca.session_token`
  - API key in header `x-api-key`
  - HTTP bearer

Deletes the source row. Its suggestions go with it through a foreign-key cascade, so anything still pending disappears. Values the coach already approved stay in the profile, because approval copies them there.

**API key scopes:** `knowledge:write`. You also need an `Idempotency-Key` header.

## Path parameters

- `id` string, uuid, required

## Headers

- `Luca-API-Version` '1'

## Response `200`

ok

- KnowledgeSourceDeleteResponse
  - `ok` true, required

## Other responses

- `401`: unauthorized
- `404`: not found
- `429`: rate limited
- `500`: internal error
- `503`: service unavailable

---

[API](https://skmtc.dev/setluca/apis/luca-api.md) · [All operations](https://skmtc.dev/setluca/apis/luca-api/llms.txt) · [OpenAPI document](https://skmtc.dev/setluca/apis/luca-api/revisions/90a200e4100b?raw)
