Delete media
fabrement-delete-mediaDelete a media item (permanent by default — media has no useful trash). It is deleted even while something still shows it — a block attribute, a featured image, the site icon: usedBy says where, and those places lose the image, so tell the user.
Rules: get-skill-doc {id:"site-assets-contract"} — read it before the first call.
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": {
"mediaId": "<mediaId>"
},
"name": "fabrement-delete-media"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | Default true. False sends it to the trash if the site keeps media trash. | |
| mediaId | Yes | Attachment id (see list-media). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| title | No | ||
| usedBy | No | Where it was still shown; those places have lost the image. | |
| deleted | Yes |