wp_delete_widget
Remove a WordPress widget by ID; set force to true to permanently delete it, or leave false to move it to inactive widgets. Use dry_run to preview.
Instructions
Remove a widget. force:false moves it to wp_inactive_widgets; force:true permanently deletes it.
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_widget"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| force | No | ||
| dry_run | No | Preview changes without writing |