Delete a knowledge scope
DELETE/api/v1/chatbots/:chatbotId/scopes/:scopeId
Remove one knowledge scope from a chatbot. Also unassigns the scope from the knowledge-base tree and any workflows that referenced it. Returns 409 if the scope still has documents/vectors — reassign or delete them in the dashboard first (no destructive document/vector cascade). Required scope: chatbots:write.
Request
Responses
- 200
- 401
- 403
- 404
- 409
- 429
Scope deleted.
Unauthorized — missing or invalid API key
Forbidden — key lacks required scope
Not Found
Conflict — the scope still has documents/vectors.
Too Many Requests — rate limit exceeded