Delete term
fabrement-delete-termDelete a term; posts just lose that label, children move up to the parent. Check count in list-terms first. Refused while a template is bound to its archive — unbind it first (assign-template-archive), because that binding would otherwise stay pointing at nothing. Refused too while a template draws a BODY for this term (a content-source rule): decide whether that body is still wanted, then remove the rule or pass force:true.
Rules: get-skill-doc {id:"content-model-contract"} — read it before the first call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| term | Yes | Term id, slug or exact name. | |
| force | No | Delete even though a template draws a body for this term (a content-source rule), leaving that rule pointing at nothing. Not for the frame binding — that one is released with assign-template-archive and has no force. | |
| taxonomy | Yes | Taxonomy slug (see list-taxonomies). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | What survived the deletion and needs a decision: the orphaned rules above. | |
| termId | Yes | ||
| deleted | Yes | ||
| taxonomy | Yes | ||
| orphanedRules | No | Only with force:true — the content-source rules now naming a term id that no longer exists. Nothing renders them; drop them unless the body is wanted for another term. |