Delete vector store file
DELETEhttps:/api.openai.com/v1/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.
Response
Deletion status
Example request
1 curl https://api.openai.com/v1/vector_stores/vs_abc123/files/file-abc123 \2 -H "Authorization: Bearer $OPENAI_API_KEY" \3 -H "Content-Type: application/json" \4 -H "OpenAI-Beta: assistants=v2" \5 -X DELETE
Example response
1 {2 id: "file-abc123",3 object: "vector_store.file.deleted",4 deleted: true5 }
Built with