Delete a media asset
delete_mediaPermanently delete a media asset from the CMS, removing the catalog entry and stored bytes. Requires explicit user confirmation; there is no undo.
Instructions
Delete a media asset. Removes the catalog row and the stored bytes. PERMANENT: this deletes content from the customer's Site. There is no trash and no undo. Ask the user before calling this, and pass confirm: true only once they have agreed. Needs a secret key (wv_sk_) carrying the media:write scope.
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": {
"id": "<id>"
},
"name": "delete_media"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | A UUID. | |
| confirm | No | Set to true only after the user has explicitly agreed to this action. Calling without it returns a description of what would happen and changes nothing. |