Delete vector store file
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
-
The ID of the vector store that the file belongs to.
-
The ID of the file to delete.
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"
}