DELETE
/
knowledge
/
{knowledge_base_id}
/
files
/
{file_id}
Delete File From Knowledge Base
import requests

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

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

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

print(response.json())
This response does not have an example.

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

file_id
string<uuid>
required

The id of the file to delete

Response

204

Successful Response