# Delete a post

Source: https://ampost.io/docs/api/posts-delete · Full reference: https://ampost.io/llms-full.txt

`DELETE /api/posts/{postId}` · MCP tool `posts_delete` · scope `posts:write` · rate limit `createPost` · success `200`

Discard a post that has not been published, including a scheduled one. The post stays readable with status `discarded`, and its media in Ampost storage is deleted. To take a published post down from the platforms, use posts_unpublish. Returns the discarded post. 404 POST_NOT_FOUND for an id that is not yours; 409 INVALID_STATUS_TRANSITION for a post that is posting, published, discarded or deleted. In approval mode, a key or member whose posts need approval discards only drafts (403 APPROVAL_REQUIRED otherwise).

| Field | In | Type | Required | Description |
|---|---|---|---|---|
| `postId` | path | string | yes | Post id (UUID): `id` from posts_list or posts_create |

Example response. A scheduled post, discarded: it will not publish.

```json
{
  "id": "7f1c2a9e-4b1d-4c55-9a0e-2f6d8b3c1a10",
  "status": "discarded",
  "targets": [
    {
      "platformSetId": "0b6e4d2a-9c3f-4e1b-8a7d-5f2c1e9b3d40",
      "platforms": [
        "facebook"
      ]
    }
  ],
  "platforms": [
    "facebook"
  ],
  "text": "Webinar starts in one hour.",
  "firstComment": null,
  "linkUrl": "https://example.com/webinar",
  "media": [],
  "mediaFit": "pad",
  "thread": [],
  "options": {},
  "scheduledFor": "2027-01-12T08:00:00.000Z",
  "queuePlatformSetId": null,
  "source": "api",
  "createdBy": "4e8b2d6f-1a3c-4f7e-9d5b-8c2a6e1f3b90",
  "metadata": null,
  "platformPosts": [
    {
      "platform": "facebook",
      "accountId": "8d3b6f1a-2c9e-4a7d-b5f3-1e6a9c2d7b30",
      "platformSetId": "0b6e4d2a-9c3f-4e1b-8a7d-5f2c1e9b3d40",
      "status": "cancelled",
      "platformPostId": null,
      "publishedUrl": null,
      "text": null,
      "error": null,
      "notice": null,
      "warnings": [],
      "attempts": 0,
      "nextAttemptAt": null,
      "firstComment": null,
      "mediaTransforms": null,
      "thread": null,
      "createdAt": "2026-10-06T09:00:00.000Z",
      "updatedAt": "2026-10-07T12:00:00.000Z"
    }
  ],
  "createdAt": "2026-10-06T09:00:00.000Z",
  "updatedAt": "2026-10-07T12:00:00.000Z"
}
```
