Skip to Content
Publications

Remove a published publication from its platform

Removes a published channel version from the remote platform, on channels whose provider supports it. Thread publications remove every recorded message. On DEV, returns the article to draft. On a Custom HTTP channel with retraction enabled, sends its configured request. Deleting something already gone on the platform succeeds idempotently. Keeps the post and publication record in Postdot (separate from moving the post to the trash). Requires a project owner, or an editor when the project policy editorsCanRemovePublishedPosts is enabled. Emits publication.removed on success. API keys need publication:remove_remote.

POST
/api/projects/{projectId}/publications/{publicationId}/remove-remote

Authorization

headerAuthorizationBearer <Postdot API key>

A user-owned Postdot API key sent as Authorization: Bearer <token>. Its project scope is limited by the creator’s current access.

Path Parameters

projectId*string
Length1 <= length
publicationId*string
Length1 <= length

Request Body

  1. body
expectedExternalId?string
Length1 <= length <= 2048

Response Body

Response for status 200

application/json
  1. response
remoteRemoval*
alreadyGone*boolean
Example Request
curl -X POST 'https://postdot.example/api/projects/string/publications/string/remove-remote' \
  -H 'Content-Type: application/json' \
  -d '{}'
Example Response
{
  "remoteRemoval": {
    "state": "running",
    "removedAt": 0,
    "removedBy": {
      "id": "string",
      "displayName": "string"
    },
    "errorMessage": "string",
    "errorCode": "string",
    "requiresReconnect": true,
    "requestedAt": 0
  },
  "alreadyGone": true
}

Was this page helpful?