Delete a comment
delete_commentDelete a WordPress comment, sending it to the trash for recovery by default, or permanently remove it by setting force and confirm.
Instructions
Delete a comment. It goes to the trash by default and is recoverable; force: true removes it permanently and requires confirm: true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The comment ID. | |
| force | No | Delete permanently rather than trashing. Requires confirm: true. | |
| confirm | No | Required for permanent deletion. | |
| site_id | No | Which configured WordPress site to act on. Optional — with a single site configured it is used automatically; with several, the default site is used unless you name one. Run list_sites for valid ids. |