wp_delete_page
Delete a WordPress page by ID, optionally moving it to trash or permanently removing it when force is true. Target a specific site if multiple WordPress sites are configured.
Instructions
Deletes a page.
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_page"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The ID of the page to delete. | |
| site | No | The ID of the WordPress site to target (from mcp-wordpress.config.json). Required if multiple sites are configured. | |
| force | No | If true, permanently delete. If false, move to trash. Defaults to false. |