Skip to content

Drop Vector Store

client.VectorStores.Drop(ctx, vectorStoreName) (*VectorStoreDropResponse, error)
POST/v5/vector-stores/{vector_store_name}/drop

Permanently delete a vector store and all its contents.

⚠️ WARNING: This is a destructive operation that cannot be undone. All documents, embeddings, metadata, and index configurations will be permanently deleted. Data recovery is not possible after deletion.

ParametersExpand Collapse
vectorStoreName string

The name of the vector store

ReturnsExpand Collapse
type VectorStoreDropResponse struct{…}

Response for vector store deletion.

Name string

The name of the deleted vector store

Drop Vector Store

package main

import (
  "context"
  "fmt"

  "github.com/scaleapi/sgp-dev-go"
  "github.com/scaleapi/sgp-dev-go/option"
)

func main() {
  client := sgpdev.NewClient(
    option.WithAPIKey("My API Key"),
    option.WithAccountID("My Account ID"),
  )
  response, err := client.VectorStores.Drop(context.TODO(), "vector_store_name")
  if err != nil {
    panic(err.Error())
  }
  fmt.Printf("%+v\n", response.Name)
}
{
  "name": "name"
}
Returns Examples
{
  "name": "name"
}