Skip to main content

Drop Store

Deletes an entire AI store and all its data.

Click to expand source code
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",
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