Remove a file from a vector store
Remove a file from a vector store, with its indexed chunks.
/vector_stores/{vector_store_id}/files/{file_id}Remove a file from a vector store, with its indexed chunks.
The uploaded file itself stays. To delete it too, use DELETE /files/{file_id}. Remove only a file that the store lists. Asking to remove any other file returns an error rather than a clean 404, so list the store's files first if you are not sure.
Authorization
BearerAuth Your Avey API key, sent as Authorization: Bearer <key>. This is the header the OpenAI SDKs already send, so pass the key as the client's ordinary api_key and no further configuration is needed.
In: header
Path Parameters
The id of a vector store, as returned in its id.
The id of an uploaded file, as returned in its id.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X DELETE https://api.avey.ai/llm/vector_stores/vs_6f1c2a9d8e7b4c35a0d1e2f3b4c5d6e7/files/file-Cn3MSNn72ENTiiq11Qda4A \ -H "Authorization: Bearer $AVEY_API_KEY"{ "id": "file-Cn3MSNn72ENTiiq11Qda4A", "object": "vector_store.file.deleted", "deleted": true}