Delete a comment
delete_commentMove a WordPress comment to the trash by default, or delete it permanently with force: true; returns the comment ID and whether it was trashed or deleted.
Instructions
Delete a comment. By default it is moved to the trash, where it can be restored in the WordPress admin; with force: true it is deleted permanently and cannot be restored. To only hide a comment, use update_comment with status 'hold' or 'spam' instead. Returns the comment ID and whether it was trashed or deleted.
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": {
"comment_id": "<comment_id>"
},
"name": "delete_comment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | Delete permanently instead of moving to the trash | |
| comment_id | Yes | Comment ID |