Knowledge bases
Knowledge bases
Delete a knowledge base
DELETE
Deletes a knowledge base and its documents. Their files stay in the workspace's files.
Authorization
AuthorizationstringheaderrequiredBearer <key>, where <key> is a workspace API key or a user API key. See Authentication.
workspace_id*integerThe workspace. List the ones your key can reach with GET /v1/workspaces.
knowledge_base_id*stringThe knowledge base.
Format
uuidregion*RegionsRegion of the resource: besg (Europe) or usnv (United States), as GET /v1/regions lists them
Value in
"besg""usnv"OK
application/json- response
deleted_knowledge_base_id*Deleted Knowledge Base Idcurl -X DELETE 'https://api.stacksync.com/v1/workspaces/0/knowledge-bases/497f6eca-6276-4993-bfeb-53cbbbba6f08?region=besg'{ "deleted_knowledge_base_id": "<deleted_knowledge_base_id>"}