delete_comment
Delete a WordPress comment by ID, moving it to trash by default or permanently removing it when force is enabled. Use it to clean up spam or unwanted comments on your site.
Instructions
Delete a WordPress comment (moves to trash by default)
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": "delete_comment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Comment ID to delete | |
| force | No | Permanently delete instead of trash |