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'.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"category_id": "<category_id>"
},
"name": "helpcenter_delete_category"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site_id | No | Which help center to act on: an id from helpcenter_list_sites. Needed when this connection reaches more than one help center; omit it when it reaches one. Applies to this call only — pass it on every call of a task, and ask the user which help center they mean if their request does not say. | |
| 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. |