wp_delete_media
Delete a WordPress media item by ID. Set force to true to bypass the trash and permanently remove the file.
Instructions
Delete a WordPress media item
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": "wp_delete_media"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Media ID | |
| force | No | Force delete instead of trash |