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
2 fields
·
Reseller keys only: act as one of your clients by its user id. Omit it to act on your own account. [How acting for a client works](/docs/reseller/your-clients/acting-as-clients).
ID of the file to delete.
curl -X POST 'https://omnidim.io/api/v1/knowledge_base/delete' \ -H 'Authorization: Bearer YOUR_API_KEY' \ -H 'Content-Type: application/json' \ -d '{ "user_id": 1234, "file_id": 17686 }'
Example response
{ "success": true, "message": "File deleted successfully" }
BearerAuthheader
AuthorizationBearer <token>Bearer token authentication. Obtain your API key from the OmniDimension dashboard.
application/jsonuser_id?ClientUserIdReseller keys only: act as one of your clients by its user id. Omit it to act on your own account. How acting for a client works.
file_id*integerID of the file to delete.
Response body
application/jsonFile deleted.
application/jsonsuccess?booleanmessage?stringWas this page helpful?
