Skip to main content
DELETE
/
api
/
v1
/
llm
/
vector_stores
/
{vector_store_id}
/
files
/
{file_id}
Python (SDK)
from mka1 import SDK


with SDK(
    bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
) as sdk:

    res = sdk.llm.vector_stores.delete_file(vector_store_id="vs_abc123", file_id="file-abc123")

    # Handle response
    print(res)
{
  "id": "file-abc123",
  "object": "vector_store.file.deleted",
  "deleted": true
}

Authorizations

Authorization
string
header
required

Gateway auth: send Authorization: Bearer <mka1-api-key>. For multi-user server-side integrations, you can also send X-On-Behalf-Of: <external-user-id>.

Path Parameters

vector_store_id
string
required

The ID of the vector store that the file belongs to.

file_id
string
required

The ID of the file to delete.

Response

200 - application/json

OK

Deletion status for a vector store file.

id
string
required

The ID of the deleted file.

object
any
required

The object type, which is always 'vector_store.file.deleted'.

deleted
boolean
required

Whether the deletion was successful.