Knowledge base
Delete file from knowledge base
Permanently delete a file. Removes it from any attached agents. Cannot be undone.
POST/knowledge_base/delete
Bearersession
Body
ID of the file to delete.
curl -X POST 'https://backend.omnidim.io/api/v1/knowledge_base/delete' \ -H 'Authorization: Bearer YOUR_API_KEY' \ -H 'Content-Type: application/json' \ -d '{ "file_id": 17686 }'
Example response
{ "success": true, "message": "File deleted successfully" }
Authorization
BearerAuth AuthorizationBearer <token>
Bearer token authentication. Obtain your API key from the OmniDimension dashboard.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
file_id*integer
ID of the file to delete.
Response Body
application/json
