Delete vector store file
vector_stores.files.delete(file_id, **kwargs) -> VectorStoreFileDeleted { id, deleted, object }
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.
Parameters
vector_store_id: String
file_id: String
Returns
Delete vector store file
require "openai"
openai = OpenAI::Client.new(api_key: "My API Key")
vector_store_file_deleted = openai.vector_stores.files.delete("file_id", vector_store_id: "vector_store_id")
puts(vector_store_file_deleted){
"id": "id",
"deleted": true,
"object": "vector_store.file.deleted"
}Returns Examples
{
"id": "id",
"deleted": true,
"object": "vector_store.file.deleted"
}