---
title: "Remove sources"
method: POST
path: "/assistant_knowledges/{knowledge_id}/remove/sources"
tags: ["Knowledge Bases"]
---

# Remove sources

`POST /assistant_knowledges/{knowledge_id}/remove/sources`

Remove sources from a knowledge base

## Path parameters

- `knowledge_id` string, required

## Request body

- KnowledgeBaseRemoveSourcesRequest — Request to remove sources from a knowledge base
  - `source_ids` string[], required — Array of source IDs to remove

## Response `200`

Sources successfully removed

- KnowledgeBaseSourcesResponse — Response after adding/removing sources
  - `message` string
  - `need_training` boolean

## Other responses

- `400` — Invalid request
- `401` — Unauthorized - Invalid or missing authentication
- `404` — Knowledge base not found

---

[API](https://skmtc.net/smartly/apis/smartly-ai-apis.md) · [All operations](https://skmtc.net/smartly/apis/smartly-ai-apis/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/smartly/smartly-ai-apis/revisions/1e26909d86c9/schema)
