> ## Documentation Index
> Fetch the complete documentation index at: https://docs.pixiegtm.com/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}
pixie 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.pixie.ai/api/threads/3d986dd1-9d70-45b7-8e36-5d5b8b1c9337" \
  -H "Authorization: Bearer $PIXIE_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: Pixie API
  version: 1.0.0
  description: >-
    HTTP API for the Pixie GTM platform - Lead Finder search preparation,
    campaign-backed Outbound execution, Pixie 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: Pixie Support
    url: https://pixie.ai
servers:
  - url: https://app.pixie.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.
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_...

````