Cache: Delete cache tree
metrecept_delete_cache_treeDeletes a non-main cache tree and its metadata, digest index, references, and owned cached responses so you can clean up after experiments; main trees and trees with children are refused.
Instructions
Delete a whole non-main cache tree: its metadata, digest index, references and the cached responses it owns. Use it to clean up after an experiment, typically after metrecept_manage_cache_tree promote. Find ids with metrecept_list_cache_trees. Not for a single entry: use metrecept_evict_cache_entry. Destructive and immediate, no undo; not billed. Refuses "main" (409 cannot_delete_main) and trees with children (409 tree_has_children; delete children first). Responses another tree references after a promote are kept until their TTL. A missing or already-deleted tree returns 404 tree_missing. Requires a Metrecept API key (METRECEPT_API_KEY env on stdio, or Authorization: Bearer on remote HTTP); results are scoped to that key's tenant only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tree_id | Yes | Id of the tree to delete; any tree except "main". |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |