WooCommerce: Delete media
woocommerce_delete_mediaPermanently delete a WordPress media library item, such as a failed or duplicate upload, using an Application Password. Media cannot be trashed via the REST API, so removal is final.
Instructions
[UNIFIED] Permanently delete a media library item (e.g. a failed or duplicate upload). WordPress media cannot be trashed through the REST API. Uses the site's WordPress Application Password.
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": {
"site": "<site>",
"media_id": "<media_id>"
},
"name": "woocommerce_delete_media"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | Yes | ||
| media_id | Yes |