wp_delete_post
Delete a WordPress post by ID, moving it to trash or removing it permanently with force. Confirms the action and reports the result for safe content management.
Instructions
Deletes a WordPress post with options for trash or permanent deletion. Includes safety confirmations and detailed feedback on the deletion action.
Usage Examples:
• Trash a post: wp_delete_post --id=123 (moves to trash)
• Permanent deletion: wp_delete_post --id=123 --force=true
• Bulk operations: Use multiple calls with different IDs
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "wp_delete_post"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | No | The ID of the WordPress site to target (from mcp-wordpress.config.json). Required if multiple sites are configured. |