Trash Comment
Moves a comment to the trash, given its comment ID. Recoverable from the trash.
| Property | Value |
|---|---|
| Ability slug | mosmcp/trash-comment |
| Wire tool name | mosmcp__trash-comment |
| Category | Comments (mosmcp-comments) |
| Plan | Free |
Required access
| Requirement | Value |
|---|---|
| Capability | moderate_comments |
| Minimum default role | Editor |
| Annotations | readOnly: false · destructive: true · idempotent: true · openWorld: true |
Input schema
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| id | integer (min 1) | Yes | — | The comment ID (required). |
Output schema
| Field | Type | Required |
|---|---|---|
| id | integer | Yes |
| success | boolean | Yes |
Example
Sample prompt
Move comment 902 to the trash.
Example request (json)
{
"jsonrpc": "2.0",
"id": 128,
"method": "tools/call",
"params": {
"name": "mosmcp__trash-comment",
"arguments": {
"input": {
"id": 902
}
}
}
}Example response (json)
{
"jsonrpc": "2.0",
"id": 128,
"result": {
"isError": false,
"structuredContent": {
"id": 902,
"success": true
}
}
}
Edge cases / errors
- No comment with that id → error mosmcp_comment_not_found.
- WordPress refuses to trash it → error mosmcp_trash_failed.
- If the site has the trash disabled (EMPTY_TRASH_DAYS set to 0), WordPress deletes the comment permanently instead of trashing it.
- Trashed comments can be found with mosmcp/list-trashed-comments.
| << Previous | Next >> |
|---|---|
| Search Comments | Unapprove Comment |
For more information about the Secure MCP Server for WordPress plugin, explore the following resources:
Product Overview | Pricing | Try for Free | Documentation
If you have any questions regarding plugin configuration, pricing plans or licensing, please contact us or mail us at aisupport@xecurify.com.