DELETE /v2/knowledge-bases/{knowledge_base_id}
Delete a knowledge base by its ID.
How to use
Removes the knowledge base. Check dependent workflows and retain necessary source material before deletion. A 204 response has no JSON body. Read successful resource payloads under data when a body is returned.
Authentication and permissions
Required permissions: kbs.delete. Resource and owner access checks also apply.
Authorizations
AuthorizationstringRequired
Personal API key (sk_...) or supported user access JWT. See Authentication and authorization for endpoint restrictions and scopes. Use exactly one Authorization header.
Path parameters
knowledge_base_idstring · uuidRequired
Responses
204
Successful Response
No content
422
Validation Error
application/json
delete/v2/knowledge-bases/{knowledge_base_id}
curlcurl --fail-with-body -sS -X DELETE \
"$STACKAI_BASE_URL/v2/knowledge-bases/${KNOWLEDGE_BASE_ID}" \
-H "Authorization: Bearer $STACKAI_API_KEY"No content
PreviousPATCH /v2/knowledge-bases/{knowledge_base_id}
NextGET /v2/knowledge-bases/{knowledge_base_id}/metadata-schemas
Last updated
Was this helpful?

