ragDeleteWorkspace( )
Deletes a RAG workspace and all its data.
function ragDeleteWorkspace(params): Promise<void>;The workspace must not be currently loaded/in-use.
Parameters
| Name | Type | Required? | Description |
|---|---|---|---|
| params.workspace | string | ✓ | Name of the workspace to delete |
Returns
Promise<void> — Resolves when the workspace is deleted.
Throws
| Error | When |
|---|---|
RAG_DELETE_FAILED | The workspace doesn't exist or is currently loaded |
Example
await ragDeleteWorkspace({ workspace: "my-docs" });