Skip to main content
DELETE
/
knowledge
/
{knowledge_base_id}
Delete Knowledge Base
import requests

url = "https://api.opper.ai/v2/knowledge/{knowledge_base_id}"

headers = {"Authorization": "Bearer <token>"}

response = requests.delete(url, headers=headers)

print(response.text)
{
  "detail": "The request is invalid",
  "type": "BadRequestError",
  "message": "The request is invalid"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

knowledge_base_id
string<uuid>
required

The id of the knowledge base to delete or delete documents from

Response

Successful Response