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.
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"
}