delete_post
Permanently remove single posts or unpublished groups only after preview and explicit confirmation; optionally take published content down or remove just the record.
Instructions
Delete posts. DESTRUCTIVE and IRREVERSIBLE: deleted posts and captions cannot be recovered. post_id: delete one post; fetch it with get_post first, show the user what will be deleted (caption, account, scheduled time), and pass confirm=true only after explicit confirmation ("yes delete it", "remove it"). A post that is currently publishing is never deleted. A published post is taken down only when the user also explicitly confirms the live removal: delete_mode=platform with confirm_published=true takes the live post down too; delete_mode=posterly removes only the posterly record and leaves it up. Live deletion supports eligible connected platforms with saved post IDs and deletion permissions; refusals keep the record. Threads requires threads_delete. YouTube requires youtube.force-ssl or equivalent, upload alone is insufficient. A published post with no live URL and no platform id is removed from posterly only. group_id: delete every draft, scheduled, failed, or paused post matching a caller-defined group_id, post_group_id, api_group_id, or release_id. A group delete never removes published posts. Preview then confirm: call without confirm to get a preview and preview_id, show it, then call again with confirm=true and that preview_id. Never delete several posts one by one without listing each and confirming the full list.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | post_id: true after explicit user confirmation of the deletion. group_id: leave out to get a preview; true only with the preview_id after the user approved it. | |
| post_id | No | Delete this one post. | |
| group_id | No | Delete every unpublished post in this group or release instead. Never deletes published posts. | |
| preview_id | No | group_id: the preview_id from the preview call. Required with confirm: true. | |
| delete_mode | No | posterly removes only the record; platform also takes down live content and requires confirm_published=true. | |
| confirm_published | No | With post_id only. True only after the user explicitly confirms taking a live post down. Required with delete_mode=platform. |