Method: OpenAI::Resources::VectorStores#delete

Defined in:
lib/openai/resources/vector_stores.rb

#delete(vector_store_id, request_options: {}) ⇒ OpenAI::Models::VectorStoreDeleted

Delete a vector store.

Parameters:

  • vector_store_id (String)

    The ID of the vector store to delete.

  • request_options (OpenAI::RequestOptions, Hash{Symbol=>Object}, nil)

Returns:

See Also:



139
140
141
142
143
144
145
146
# File 'lib/openai/resources/vector_stores.rb', line 139

def delete(vector_store_id, params = {})
  @client.request(
    method: :delete,
    path: ["vector_stores/%1$s", vector_store_id],
    model: OpenAI::VectorStoreDeleted,
    options: {extra_headers: {"OpenAI-Beta" => "assistants=v2"}, **params[:request_options].to_h}
  )
end