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(VectorStoreDeleteParamsparams = VectorStoreDeleteParams.none(), RequestOptionsrequestOptions = RequestOptions.none())
DELETE/vector_stores/{vector_store_id}

Delete a vector store.

ParametersExpand Collapse
VectorStoreDeleteParams params
Optional<String> vectorStoreId
ReturnsExpand Collapse
class VectorStoreDeleted:
String id
boolean deleted
JsonValue; object_ "vector_store.deleted"constant"vector_store.deleted"constant

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");
    }
}
{
  id: "vs_abc123",
  object: "vector_store.deleted",
  deleted: true
}
Returns Examples
{
  id: "vs_abc123",
  object: "vector_store.deleted",
  deleted: true
}