Skip to main content

Drop Store

Schema

This request accepts an optional schema field. When it is omitted, the server uses the public schema. Set schema to target a store in another schema.

Deletes an entire AI store and all its data.

Click to expand source code
TypeScript
import { createAiClient } from "ahnlich-client-node";
import { DropStore } from "ahnlich-client-node/grpc/ai/query_pb";

async function dropStore() {
const client = createAiClient("127.0.0.1:1370");

await client.dropStore(
new DropStore({
store: "ai_store",
schema: "analytics",
errorIfNotExists: true,
})
);

console.log("AI store dropped");
}

dropStore();

Parameters

ParameterTypeRequiredDescription
storestringYesThe name of the AI store to delete
errorIfNotExistsbooleanNoIf true, throws error if store doesn't exist

Notes

  • This operation is irreversible
  • All data, embeddings, and indices are permanently deleted