For the complete documentation index, see llms.txt. This page is also available as Markdown.

DELETE /v2/knowledge-bases/{knowledge_base_id}

Delete Knowledge Base

delete

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

delete/v2/knowledge-bases/{knowledge_base_id}
curl
curl --fail-with-body -sS -X DELETE \
  "$STACKAI_BASE_URL/v2/knowledge-bases/${KNOWLEDGE_BASE_ID}" \
  -H "Authorization: Bearer $STACKAI_API_KEY"

No content

Last updated

Was this helpful?