Delete vector store file

DELETE /vector_stores/{vector_store_id}/files/{file_id}

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 endpoint.

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
DELETE /vector_stores/{vector_store_id}/files/{file_id}
curl \
 -X DELETE https://api.openai.com/v1/vector_stores/{vector_store_id}/files/{file_id} \
 -H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "id": "string",
  "deleted": true,
  "object": "vector_store.file.deleted"
}