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"
}
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.
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"
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
The ID of the vector store that the file belongs to.
The ID of the file to delete.
OK
The response is of type object
.
Was this page helpful?