Delete Revision


Permanently deletes a single revision by ID. This does not affect the current post — only that one historical snapshot is removed. There is no undo and no wp-admin screen for this action. Requires confirm=true.

Property Value
Ability slug mosmcp/revision-delete
Wire tool name mosmcp__revision-delete
Category Revisions (mosmcp-revisions)
Plan Free

 

Required access

Requirement Value
Capability edit_post (checked against the specific post)
Minimum default role Contributor
Annotations readOnly: false · destructive: true · idempotent: true · openWorld: false

 

Input schema

Field Type Required Default Description
id integer (min 1) Yes — The ID of the revision to delete.
confirm boolean Yes — Must be true to confirm permanent, irreversible deletion.

 

Output schema

Field Type Required
id integer Yes
post_id integer Yes
deleted boolean Yes

 

Example

Sample prompt
Delete revision 290 from post 42's history.

Example request (json)

{
  "jsonrpc": "2.0",
  "id": 103,
  "method": "tools/call",
  "params": {
    "name": "mosmcp__revision-delete",
    "arguments": {
      "input": {
        "id": 290,
        "confirm": true
      }
    }
  }
}

Example response (json)

{
  "jsonrpc": "2.0",
  "id": 103,
  "result": {
    "isError": false,
    "structuredContent": {
      "id": 290,
      "post_id": 42,
      "deleted": true
    }
  }
}

 

Edge cases / errors

  • confirm missing or not exactly true → refused with confirmation_required.
  • id that is not a revision → revision_not_found; caller cannot edit the parent post → cannot_edit_post.
  • Only that snapshot is removed; the current post is untouched. There is no undo.

 


<< Previous Next >>
Count Revisions for Post Get Latest Revision

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.