---
title: "Delete Draft"
method: DELETE
path: "/v1/posts/{id}"
tags: ["Drafts"]
---

# Delete Draft

`DELETE /v1/posts/{id}`

## Request

- Base URL: `https://api.linkedmash.com`
- URL: `https://api.linkedmash.com/v1/posts/{id}`
- Auth: one of:
  - OAuth 2 (client credentials, token URL `https://api.linkedmash.com/auth/oauth/token`, scopes: `content:write`)
  - HTTP bearer
  - API key in header `linkedmash-api-key`

Delete a post draft by its id. Requires a paid Premium or Lifetime plan.

DELETE /v1/posts/{id} removes a draft. The delete is soft: the draft is moved to trash rather than erased, which is why the response is a plain { id, deleted: true } rather than the deleted record.

As with update, the draft is fetched first to confirm it exists and belongs to the account, so deleting an unknown id is a clean 404.

## Path parameters

- `id` string, required

## Response `200`

Successful response.

- object
  - `status` boolean, required
  - `data` object, required
    - `id` string, required
    - `deleted` boolean, required

## Other responses

- `401`: Unauthorized. The Authorization header is missing or the key is not a valid LinkedMash API key. Create or rotate keys on the API page in your LinkedMash settings.
- `402`: Payment Required. Returned with code SUBSCRIPTION_REQUIRED. The content API requires a Premium or Lifetime plan; Reader and free accounts get this on every /v1/posts, /v1/queue, /v1/schedule, /v1/media and /v1/analytics call.
- `404`: Not Found. No draft with that id on this account.
- `500`: Server Error. Something failed on our side. The body carries message "Failed to delete post". Retry once; if it persists the request is not the problem.

---

[API](https://skmtc.dev/linkedmash/apis/linkedmash-api.md) · [All operations](https://skmtc.dev/linkedmash/apis/linkedmash-api/llms.txt) · [OpenAPI document](https://skmtc.dev/linkedmash/apis/linkedmash-api/revisions/eef45d6fbea3?raw)
