Delete a file from a knowledge base by its id
Python
import requests url = "https://api.opper.ai/v2/knowledge/{knowledge_base_id}/files/{file_id}" headers = {"Authorization": "Bearer <token>"} response = requests.request("DELETE", url, headers=headers) print(response.text)
This response does not have an example.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
The id of the knowledge base
The id of the file to delete
Successful Response