delete_folder
Recursively delete a folder and all its contents from the knowledge base. Refuses to delete within a project; use your editor instead.
Instructions
DESTRUCTIVE — recursively delete a folder under the KB AND every file inside it (disk + FTS rows). REFUSES (returns isError) when project_id is supplied: deleting inside a registered project would race the file watcher and re-ingest the contents — remove project content via your editor instead. Same name validation as create_folder. Not recoverable from CtxNest after the call (only the git backup, if configured, retains it). No external auth or rate limits. Returns {success: true}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | No | Project ID. Pass null or omit to delete from the KB. Project IDs are rejected. | |
| name | Yes | Folder name (relative) |