Delete a comment
delete_commentDelete a comment by its ID. Moves to trash by default, or permanently removes it when force and confirmation are provided.
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. |