Delete File

Permanently delete a file, its embeddings, and chat history.

Delete a file by ID

DELETE https://api.knowbase.ai/api/v1/files/{file_id}

Permanently deletes a file from your library, including its vector embeddings and associated chat history. This action cannot be undone.

Headers

Name
Type
Description

Authorization*

string

Bearer YOUR_API_TOKEN

Path Parameters

Name
Type
Description

file_id*

string

The UUID of the file to delete

Responses

200: OK

{
  "message": "File deleted successfully"
}

404: Not Found

{
  "error": {
    "code": "NOT_FOUND",
    "message": "File not found"
  }
}

Example

Last updated