---
title: "Discard a draft"
method: DELETE
path: "/agent/{id}/drafts/{draftId}"
tags: ["Agent Versioning - Drafts"]
deprecated: true
---

# Discard a draft

`DELETE /agent/{id}/drafts/{draftId}`

> **Deprecated.**

**Deprecated on the v2 branch model.** Migrate to `DELETE /agent/{id}/branches/{branchId}/draft`. When `ENABLE_BRANCH_MODEL` is on, this endpoint returns `409 versioning_v2_migration_required` with the `Deprecation: true` header. See the [migration guide](/voice-agents/deprecations/agent-versioning-migration).

Discard (soft-delete) a draft. Only the draft creator or an admin can discard.

## Path parameters

- `id` string, required
- `draftId` string, required

## Response `200`

Draft discarded successfully

- object
  - `status` boolean
  - `data` unknown

## Other responses

- `401` — Unauthorized access
- `403` — Forbidden. Returned in two cases: - The caller is not the draft creator or an org admin - The agent uses workflow_graph and the org lacks conversational agents access
- `404` — Agent or draft not found
- `409` — The v1 versioning endpoint is deprecated on the branch model and will not process this request. The response body carries `error_type: "versioning_v2_migration_required"` and the response includes the `Deprecation: true` header. See the [migration guide](/voice-agents/deprecations/agent-versioning-migration) for the v2 equivalent.
- `500` — Internal server error

---

[API](https://skmtc.net/smallest-inc/apis/agent-management-api.md) · [All operations](https://skmtc.net/smallest-inc/apis/agent-management-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/smallest-inc/agent-management-api/versions/6d1036a76fbc/schema)
