QVAC Logo

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 }): Promise

Parameters

NameTypeRequired?Description
params\{ workspace: string \}The parameters for deletion
options`{ forceNewConnection?: boolean; profiling?: { enabled?: boolean; includeServerBreakdown?: boolean; mode?: "summary""verbose" }; timeout?: number }`

Returns

Promise

Throws

ErrorWhen
When the workspace doesn't exist or is currently loaded

Example

await ragDeleteWorkspace({ workspace: "my-docs" });

On this page