folders.delete
Recursively delete a folder and all its files from the knowledge base, including search index entries. Refuses project-scoped deletion to avoid file-watcher re-ingestion conflicts.
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 folders.create. Not recoverable from Kontexta 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 |
|---|---|---|---|
| name | Yes | Folder name (relative) | |
| project_id | No | Project ID. Pass null or omit to delete from the KB. Project IDs are rejected. |