QVAC Logo

ragDeleteWorkspace( )

Deletes a RAG workspace and all its data.

function ragDeleteWorkspace(params): Promise<void>;

The workspace must not be currently loaded/in-use.

Parameters

NameTypeRequired?Description
params.workspacestringName of the workspace to delete

Returns

Promise<void> — Resolves when the workspace is deleted.

Throws

ErrorWhen
RAG_DELETE_FAILEDThe workspace doesn't exist or is currently loaded

Example

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

On this page