Delete a chatbot
DELETE/api/v1/chatbots/:chatbotId
Permanently deletes a chatbot and cascades its cleanup (knowledge base, storage, deployment, and configuration). Requires the chatbot OWNER or a team owner/admin (stricter than edit access). Returns 200 on full deletion, or 207 Multi-Status if the chatbot was removed but some downstream cleanup failed (see errors). Returns 409 if a shared resource (e.g. a knowledge base still used by another chatbot) blocks deletion — nothing is deleted in that case. Required scope: chatbots:write.
Request
Responses
- 200
- 207
- 401
- 403
- 404
- 409
- 429
- 500
Chatbot fully deleted.
Chatbot removed, but some downstream cleanup failed — see errors.
Unauthorized — missing or invalid API key
Forbidden — key lacks required scope
Not Found
Conflict — a shared resource blocks deletion; nothing was deleted.
Too Many Requests — rate limit exceeded
Deletion failed (nothing deleted, or a partial cascade before an error).