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.
AuthorizationBearer <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.
projectId*string1 <= lengthpublicationId*string1 <= length- body
expectedExternalId?string1 <= length <= 2048Response for status 200
application/json- response
remoteRemoval*alreadyGone*booleancurl -X POST 'https://postdot.example/api/projects/string/publications/string/remove-remote' \
-H 'Content-Type: application/json' \
-d '{}'{
"remoteRemoval": {
"state": "running",
"removedAt": 0,
"removedBy": {
"id": "string",
"displayName": "string"
},
"errorMessage": "string",
"errorCode": "string",
"requiresReconnect": true,
"requestedAt": 0
},
"alreadyGone": true
}