# at.unthread.document.deleteDraft

> Published by [unthread.at](https://lexicon.garden/identity/did:plc:trxedfug5xlbw64ydrkv7cr2)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:trxedfug5xlbw64ydrkv7cr2/at.unthread.document.deleteDraft)
- [Documentation](https://lexicon.garden/lexicon/did:plc:trxedfug5xlbw64ydrkv7cr2/at.unthread.document.deleteDraft/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:trxedfug5xlbw64ydrkv7cr2/at.unthread.document.deleteDraft/examples)

## Definitions

### `at.unthread.document.deleteDraft`

**Type**: `procedure`

Delete a draft document.

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `tid` | `string` | Yes | TID of the draft to delete. |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `success` | `boolean` | Yes |  |

#### Errors

- **DraftNotFound**

## Raw Schema

```json
{
  "id": "at.unthread.document.deleteDraft",
  "defs": {
    "main": {
      "type": "procedure",
      "input": {
        "schema": {
          "type": "object",
          "required": [
            "tid"
          ],
          "properties": {
            "tid": {
              "type": "string",
              "description": "TID of the draft to delete."
            }
          }
        },
        "encoding": "application/json"
      },
      "errors": [
        {
          "name": "DraftNotFound"
        }
      ],
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "success"
          ],
          "properties": {
            "success": {
              "type": "boolean"
            }
          }
        },
        "encoding": "application/json"
      },
      "description": "Delete a draft document."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
