Trillet AI logo

Delete Call Flow Knowledge File

Delete a stored call flow knowledge file by its storage key.

DELETEhttps://api.trillet.ai/v1/api/call-flows/knowledge-base/{fileKey}

This endpoint does not touch any call flow. To stop a flow using a file, remove it from the flow's settings.knowledgeBaseFiles with Update Call Flow.

Known issue: this call can return 200 without removing the stored file. A fix is in progress; until then, don't rely on it to remove a file's contents.

Headers

x-workspace-idstringrequired

Workspace identifier for the API.

Path Parameters

fileKeystringrequired

The storage key of the file. Keys contain /, so URL-encode the whole key (/ becomes %2F). Only keys under your own workspace are accepted. The path does not include a call flow ID.

Response Fields

200 OK with { "success": true, "message": "File deleted successfully", "fileKey": "...", "result": true }.

Errors

StatusBodyWhen
404{"message": "File not found"}The key does not belong to this workspace
500{"message": "..."}The storage request failed

Last updated on