ragDeleteWorkspace( )
Deletes a RAG workspace and all its data. The workspace must not be currently loaded/in-use.
function ragDeleteWorkspace(params: { workspace: string }, options?: { forceNewConnection?: boolean; profiling?: { enabled?: boolean; includeServerBreakdown?: boolean; mode?: "summary" | "verbose" }; timeout?: number }): PromiseParameters
| Name | Type | Required? | Description |
|---|---|---|---|
params | \{ workspace: string \} | ✓ | The parameters for deletion |
options | `{ forceNewConnection?: boolean; profiling?: { enabled?: boolean; includeServerBreakdown?: boolean; mode?: "summary" | "verbose" }; timeout?: number }` | ✗ |
Returns
PromiseThrows
| Error | When |
|---|---|
When the workspace doesn't exist or is currently loaded |
Example
await ragDeleteWorkspace({ workspace: "my-docs" });ragDeleteEmbeddings( )
Deletes document embeddings from the RAG vector database. **Workspace lifecycle:** This operation requires an existing workspace.
ragIngest( )
Ingests documents into the RAG vector database. Full pipeline: chunk → embed → save **Workspace lifecycle:** This operation implicitly opens (or creates) the workspace. The workspace remains open until closed.