---
title: "Delete a draft"
method: DELETE
path: "/v1/drafts/{id}"
tags: ["Drafts"]
---

# Delete a draft

`DELETE /v1/drafts/{id}`

## Request

- Base URL: `https://api.mails.ai`
- URL: `https://api.mails.ai/v1/drafts/{id}`
- Auth: HTTP bearer

**Requires scope:** `manage` or `draft`. Deletes a draft. A draft that is being sent cannot be deleted (409 `duplicate_resource`), and a test key cannot delete one a live key made (403 `live_mode_required`).

## Path parameters

- `id` string, required

## Response `200`

The deleted draft id.

- object
  - `id` string, required: Id of the deleted draft (`dft_…`). It is removed for good, whatever its status; a message already sent from it is kept.
  - `deleted_at` string, date-time, required: The time of this call. A scheduled draft deleted before its `send_at` is never sent.

## Other responses

- `401`: Missing or invalid API key.
- `403`: The API key lacks the required scope (`insufficient_scope`), or the token belongs to an app connected by sign-in and this operation is closed to connected apps (`connected_app_not_allowed`).
- `404`: Resource not found in this workspace, or the agent a send names is archived (`agent_archived`).
- `409`: Conflict — duplicate resource, an in-progress idempotent request, a draft or scheduled message that started sending while it was being changed, or a thread deleted for good while one of its messages is being sent (`duplicate_resource`); or an agent name more than one agent has (`agent_name_conflict`: use the agent's id); or a status change on an archived agent, since archiving cannot be undone (`agent_archived`).
- `500`: Internal server error.

---

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