Delete a vector store file. This will remove the file from the vector store but the file itself will not be deleted. To delete the file, use the [delete file](/docs/api-reference/files/delete) endpoint.

DELETE /vector_stores/{vector_store_id}/files/{file_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.

Responses

  • 200 application/json

    OK

    Hide response attributes Show response attributes object
    • id string Required
    • deleted boolean Required
    • object string Required

      Value is vector_store.file.deleted.

DELETE /vector_stores/{vector_store_id}/files/{file_id}
curl \
 --request DELETE 'https://api.openai.com/v1/vector_stores/{vector_store_id}/files/{file_id}' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "id": "string",
  "deleted": true,
  "object": "vector_store.file.deleted"
}