# Cancel a publication

> Cancel a scheduled publication or delete a draft.

Canonical: <https://www.tryadeli.com/docs/api/posts/cancel-publication>

`DELETE https://app.tryadeli.com/api/v1/publications/{publicationId}`

Authorization: `Bearer <API key>` — see [Authentication](https://www.tryadeli.com/docs/authentication)

Cancels a scheduled publication, or deletes a draft, before it is published.
Its `status` becomes `canceled`, it is never published, and the media Adeli
kept for it is deleted. Once it has started, the request answers `409`.

**Path parameters**

| Name            | Type   | Required | Description                                           |
| --------------- | ------ | -------- | ----------------------------------------------------- |
| `publicationId` | `uuid` | Yes      | The id from the create response or List publications. |

## Request examples

**cURL**

```bash
curl -X DELETE "https://app.tryadeli.com/api/v1/publications/00000000-0000-4000-8000-000000000020" \
  -H "Authorization: Bearer $ADELI_API_KEY"
```

**JavaScript**

```javascript
const response = await fetch("https://app.tryadeli.com/api/v1/publications/00000000-0000-4000-8000-000000000020", {
  method: "DELETE",
  headers: {
    Authorization: `Bearer ${process.env.ADELI_API_KEY}`,
  },
});
console.log(await response.json());
```

**Python**

```python
import os

import requests

response = requests.delete(
    "https://app.tryadeli.com/api/v1/publications/00000000-0000-4000-8000-000000000020",
    headers={"Authorization": f"Bearer {os.environ['ADELI_API_KEY']}"},
)
print(response.json())
```

## Responses

### 200

```json
{
  "id": "00000000-0000-4000-8000-000000000020",
  "profileId": "00000000-0000-4000-8000-000000000001",
  "status": "canceled",
  "progress": 0,
  "scheduledFor": "2026-11-13T12:30:00.000Z",
  "timeZone": "America/New_York",
  "canceledAt": "2026-11-10T15:20:00.000Z",
  "statusUrl": "/api/v1/publications/00000000-0000-4000-8000-000000000020",
  "createdAt": "2026-11-10T15:00:00.000Z",
  "updatedAt": "2026-11-10T15:20:00.000Z",
  "completedAt": "2026-11-10T15:20:00.000Z",
  "targets": [
    { "id": "00000000-0000-4000-8000-000000000021", "platform": "instagram", "accountId": "00000000-0000-0000-0000-000000000010", "status": "queued", "attempts": 0, "result": null, "error": null }
  ]
}
```

### 409

```json
{
  "error": {
    "code": "publication_in_progress",
    "message": "The publication has already started, so it can no longer be changed"
  }
}
```
