Skip to content
For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to the page URL.
Primary navigation

Delete vector store

VectorStoreDeleted vectorStores().delete(params = VectorStoreDeleteParams.none(), requestOptions = RequestOptions.none())
DELETE
/vector_stores/{vector_store_id}

Delete a vector store.

Delete vector store

package com.openai.example;

import com.openai.client.OpenAIClient;
import com.openai.client.okhttp.OpenAIOkHttpClient;
import com.openai.models.vectorstores.VectorStoreDeleteParams;
import com.openai.models.vectorstores.VectorStoreDeleted;

public final class Main {
    private Main() {}

    public static void main(String[] args) {
        OpenAIClient client = OpenAIOkHttpClient.fromEnv();

        VectorStoreDeleted vectorStoreDeleted = client.vectorStores().delete("vector_store_id");
    }
}
Response example
{
  "id": "vs_abc123",
  "object": "vector_store.deleted",
  "deleted": true
}
Parameters
VectorStoreDeleteParams params
Optional<String> vectorStoreId
Returns
class VectorStoreDeleted:
String id
boolean deleted
JsonValue; object_
constant
constant
Returns Examples
Response example
{
  "id": "vs_abc123",
  "object": "vector_store.deleted",
  "deleted": true
}