Delete HelpCenter Category
helpcenter_delete_categoryDelete a category from the HelpCenter.io help center bound to your API key.
DESTRUCTIVE. The category is removed and its contents are moved somewhere else. Fails closed by default: a category holding articles or sub-categories answers 409 unless you say explicitly where its contents should go.
Args:
category_id (number, required): id of the category to delete.
on_orphan ('refuse' | 'uncategorize' | 'reparent', optional): default 'refuse'.
refuse — 409 if the category is not empty. Read the response's articles_count / children_count, then choose.
uncategorize — articles fall back to Uncategorized; sub-categories become top-level.
reparent — articles and sub-categories both move up to this category's own parent. With no parent this is the same as uncategorize.
Returns: { status: "success", on_orphan, articles_moved, children_moved, moved_to }.
Articles are never deleted by this tool, only re-filed. An article that belonged to several categories keeps the others.
Errors: 403 if the key is read-scoped; 404 if the category is not in this help center; 409 when it is not empty and on_orphan was left at 'refuse'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_key | Yes | The api_key helpcenter_create_help_center returned for this help center, exactly as returned. Required on every call: this endpoint has no sign-in, so the key is how each call says which help center it acts on. It is sent to HelpCenter.io as this call's credential and nowhere else, and it is never shown again: keep it for the whole task, and never show it to the user or write it into content. | |
| on_orphan | No | What happens to the articles and sub-categories inside. 'refuse' (default) fails with 409 if the category is not empty; 'uncategorize' sends articles to Uncategorized and lifts children to top level; 'reparent' moves both up to this category's own parent. | |
| category_id | Yes | Id of the category to delete. |