DELETE
/
vector_stores
/
{vector_store_id}
/
files
/
{file_id}
curl --request DELETE \
  --url https://api.openai.com/v1/vector_stores/{vector_store_id}/files/{file_id} \
  --header 'Authorization: Bearer <token>'
{
  "id": "<string>",
  "deleted": true,
  "object": "vector_store.file.deleted"
}

Authorizations

Authorization
string
header
required

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

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

The response is of type object.