Delete a file

Delete a file, and remove what Olive kept from it.

DELETE/files/{file_id}

Delete a file, and remove what Olive kept from it.

The file is also removed from every vector store of yours that holds it, along with its indexed chunks and the text Olive read from it. A response you stored with store: true keeps its own copy of any file text you sent as input_file. Delete that response too with DELETE /responses/{response_id}.

If a step fails the call answers 502 and the file stays, so retrying runs the whole delete again. A file that does not exist, or that belongs to another account, answers 404.

Authorization

BearerAuth
AuthorizationBearer <token>

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

file_id*string

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

curl -X DELETE https://api.avey.ai/llm/files/file-Cn3MSNn72ENTiiq11Qda4A \  -H "Authorization: Bearer $AVEY_API_KEY"
{  "id": "file-Cn3MSNn72ENTiiq11Qda4A",  "object": "file",  "deleted": true}