MCP is live.Set upAsk the community
OmniDimension
Knowledge base

Delete file from knowledge base

Permanently delete a file. Removes it from any attached agents. Cannot be undone.

POST/knowledge_base/delete
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"
}

Authorization

BearerAuth
headerAuthorizationBearer <token>

Bearer token authentication. Obtain your API key from the OmniDimension dashboard.

Request Body

application/json
user_id?ClientUserId

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.

file_id*integer

ID of the file to delete.

Response body

application/json

Response Body

File deleted.

application/json
success?boolean
message?string

Was this page helpful?