> ## Documentation Index
> Fetch the complete documentation index at: https://docs.puffle.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete Draft Thread

> Permanently discard an unsent one-off email draft thread.

**CLI:**

```bash theme={null}
puffle thread discard --id <id>
```

## Overview

Permanently deletes an unsent one-off email draft thread.

This endpoint only works when the thread has `status: "draft"` and has no inbound or outbound messages. It will not delete active conversations, archived conversations, sent one-off emails, campaign conversations, or drafts that already have message history.

## Path Parameters

| Parameter | Type   | Description      |
| --------- | ------ | ---------------- |
| `id`      | string | Draft thread ID. |

## Example

```bash theme={null}
curl -X DELETE "https://app.puffle.ai/api/threads/3d986dd1-9d70-45b7-8e36-5d5b8b1c9337" \
  -H "Authorization: Bearer $PUFFLE_API_KEY"
```

```json theme={null}
{
  "deleted": true
}
```

## Error Notes

| Status | When it happens                                                |
| ------ | -------------------------------------------------------------- |
| `404`  | The thread does not exist or does not belong to the workspace. |
| `409`  | The thread is not an unsent draft.                             |
| `500`  | Deletion failed unexpectedly.                                  |

## AI agent notes

Use this only to clean up unsent one-off drafts. To hide a real conversation, archive it with [Update thread](/api-reference/unibox/update-thread) instead.


## OpenAPI

````yaml delete /api/threads/{id}
openapi: 3.0.3
info:
  title: Puffle API
  version: 1.0.0
  description: >-
    HTTP API for the Puffle GTM platform - Feed and Lead Finder search
    preparation, campaign-backed Outbound execution, Puffle Agent runs, sender
    management, and Unibox reply workflows. Designed for operation by both
    humans and autonomous AI agents. Agents should start at the [Agent
    Playbook](/guides/agent-playbook) which prescribes a workspace-context check
    (`GET /api/context`) and core user journeys with exact call ordering.
  contact:
    name: Puffle Support
    url: https://puffle.ai
servers:
  - url: https://app.puffle.ai
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Campaigns
    description: >-
      Campaign-backed Outbound execution. These endpoints manage draft,
      launching, active, paused, and completed Outbound runs with sequence
      nodes, contacts, and sender accounts.
  - name: Accounts
    description: Signed-in user account, settings, and workspace context endpoints.
  - name: Billing
    description: Billing customer portal and account billing endpoints.
  - name: Senders
    description: >-
      Connected sender accounts, email inboxes, sending domains, DNS
      verification, warmup, and sender capacity.
  - name: Socials
    description: >-
      Read connected LinkedIn and X accounts, review current and archived posts,
      and reconcile publication status. Creating, editing, scheduling,
      publishing, OAuth connection, analytics, and mentions remain
      dashboard-managed workflows and are not part of the public Bearer-token
      API.
paths:
  /api/threads/{id}:
    delete:
      tags:
        - Unibox
      summary: Delete Draft Thread
      description: Delete Draft Thread
      operationId: discardDraftThread
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            description: Thread (`conversations.id`) UUID.
      responses:
        '200':
          description: Successful response.
        '401':
          description: Unauthorized.
        '404':
          description: Not found.
        '409':
          description: Thread is not an unsent draft.
        '500':
          description: Internal server error.
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: pk_live_...

````