cURL
Files
Delete File
Delete a file from a knowledge base
DELETE
cURL
Use this endpoint to delete a regular file by
file_id, and also to remove a directory from the knowledge base.
For a folder, use the same id returned for that row in GET /orgs/{org_id}/k2/{kb_id}/files (or the placeholder_file_id from create-directory). Deleting that listing row removes the folder from file listings.Authorizations
Timbal API key. Obtain your API key from the Timbal platform settings. See Authentication for more information.
Response
204
File deleted