Delete HelpCenter Image
helpcenter_delete_imageDelete an uploaded image. The file is removed from storage, so its URL stops working everywhere it is used.
DESTRUCTIVE and irreversible — there is no trash for images.
Refused by default while article content still embeds the image: the API answers 409 and names up to 20 of those articles. Remove or replace the image in them first, or repeat with force: true to delete it anyway, leaving those articles with a broken image. Decide which — do not reach for force by default.
The check reads article content as it is now. It does not see an edit that is staged but unpublished, so do not delete an image you have just placed in a staged change.
Args:
image_id (number, required).
force (boolean, optional): delete even though articles still embed it.
Returns: { status: "success", deleted: { id, url } }.
Errors: 403 if the key is read-scoped; 404 if the image is not an API upload of this help center; 409 while articles still embed it and force is not set.
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": {
"image_id": "<image_id>"
},
"name": "helpcenter_delete_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | Delete even though article content still embeds the image, which is otherwise refused with 409. Those articles then show a broken image — only set this having decided that is acceptable. | |
| 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. | |
| image_id | Yes | Id of the image to delete. |