---
title: "Delete By Source"
method: DELETE
path: "/internal/knowledge/by_source/{source}"
tags: ["RAG internal"]
---

# Delete By Source

`DELETE /internal/knowledge/by_source/{source}`

## Request

- Base URL: `https://api.emile.wine` (the document declares no server; this is the origin it was published from)
- URL: `https://api.emile.wine/internal/knowledge/by_source/{source}`
- Auth: none declared

Wipe all knowledge_chunks rows for a given source name. Used by the
ingestion script before re-running a source — bulk_insert is not
idempotent on (source, source_url, content_text), so a re-run would
otherwise duplicate everything that was already ingested.

## Path parameters

- `source` string, required

## Headers

- `x-internal-secret` string

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

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