delete_post

Delete post

Permanently delete an unpublished draft.

Authorization and permissions

Requires a valid delegated OAuth token and access to the selected workspace.

OAuth scope
mcp:delete
Workspace requirement
Authorized workspace and current membership required

can_edit_post; publication must not have started.

Input schema

{
  "additionalProperties": false,
  "properties": {
    "expected_version": {
      "description": "Last-read post concurrency version.",
      "minimum": 1,
      "type": "integer"
    },
    "post_id": {
      "description": "Public post sqid.",
      "maxLength": 32,
      "minLength": 1,
      "type": "string"
    },
    "team_id": {
      "description": "Consented workspace ID.",
      "minimum": 1,
      "type": "integer"
    }
  },
  "required": [
    "team_id",
    "post_id",
    "expected_version"
  ],
  "type": "object"
}

Result schema

{
  "additionalProperties": false,
  "properties": {
    "deleted": {
      "const": true,
      "description": "Deleted."
    },
    "post_id": {
      "description": "Post id.",
      "type": "string"
    }
  },
  "required": [
    "deleted",
    "post_id"
  ],
  "type": "object"
}

Example arguments

{
  "expected_version": 5,
  "post_id": "P7k2Lm9Q",
  "team_id": 42
}

Example result

{
  "deleted": true,
  "post_id": "P7k2Lm9Q"
}

Errors and retry

Requires a current workspace membership. Unknown or cross-workspace posts return not found; draft permissions can deny writes. Content over 63,206 characters, stale versions, missing approval confirmation, active schedules, or started publication reject the applicable mutation. Calls are limited to 120 per user per minute.

Reads are safe to retry. Before retrying create, search or list posts to avoid a duplicate draft. For update or delete, reload the post after an ambiguous response and use its current version; never blindly repeat a stale mutation.

Effects, limits, and source

Workspace roles, subscription and AI usage limits, approval rules, and server rate limits are enforced at call time. Rate-limit responses identify when to retry; scheduled work returns state rather than holding the request open.

social_scheduling.views.post_delete with added version/publication guard

Message on LinkedIn