Remove image
remove_assetPermanently delete a hosted image — the file and its record. Use it to clear out images the user does not want kept: a wrong crop, an abandoned draft, a photo they asked you to remove. Get the id from get_uploaded_page_assets. An image a published page uses is refused, because deleting it would leave a broken image on the live page; republish that page without it first, or pass force. This cannot be undone.
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": {
"assetId": "<assetId>"
},
"name": "remove_asset"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | Delete even though a published page uses the image, accepting that the page will show a broken image until it is republished. Only with the user's agreement. | |
| assetId | Yes | The asset's id, as returned by get_uploaded_page_assets (the "id" field, also the filename in its URL). |