Skip to main content
FilesVersion: 2021-07-28

Delete a file from knowledge base

DEL/knowledge-bases/files/{fileId}

Deletes one uploaded file from the authenticated location so the AI no longer uses it. WHEN TO USE: use this when you need to remove a document; use getFilesByKnowledgeBasePublic to find the file id; use deleteTrainedUrlsForKnowledgeBase for crawled pages instead. RETURNS: whether the delete succeeded.

Authorizations

Authorizationstringheaderrequired

Bearer authentication header of the form Bearer <token>, where <token> is your access token.

Scope:knowledge-bases.write
Auth methods:OAuthPrivate Integration
Token type:Sub-Account Token

Request​

Headers

Versionstringrequired

API Version

Available options2021-07-28
Example:2021-07-28

Path Parameters

fileIdstringrequired

File ID to delete

Example:ocQHyuzHvysMo5N5VsXc

Response

Deletes a file from knowledge base

successbooleanrequired

success

Example:true