# app.thesocialwire.articleDraft.delete

> Owner-only encrypted server-private article drafts. Authentication required; owner comes only from the authenticated DID. Never publishes drafts or images to the PDS. Responses use private, no-store and nosniff. Storage unavailable returns Unavailable. Saves use expectedRevision CAS and durable mutationId idempotency; tombstones never resurrect. Explicit Publish/Schedule remain separate actions. Create uses expectedRevision 0; replaying an identical mutation returns the acknowledged snapshot, while conflicting payloads or revisions return Conflict. Clients resolve unlocked cross-device conflicts by payload.updatedAt (latest edit wins); ties, tombstones, and publication/schedule claims prefer the server.

- Kind: procedure
- Authority: articleDraft.thesocialwire.app
- Lexicon: 1
- Published by [samclemente.me](https://lexicon.garden/identity/did:plc:qy5pluw2bsuq2x6albsgkvx3), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:qy5pluw2bsuq2x6albsgkvx3/app.thesocialwire.articleDraft.delete)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:qy5pluw2bsuq2x6albsgkvx3/app.thesocialwire.articleDraft.delete/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:qy5pluw2bsuq2x6albsgkvx3/app.thesocialwire.articleDraft.delete/analytics)

## Procedure (`app.thesocialwire.articleDraft.delete`)

Type: procedure · POST

### Input (application/json)

- `draftId` (string, required): Canonical lowercase UUID. This private identifier is not a PDS record.
  - Constraints: minLength: 36, maxLength: 36
- `expectedRevision` (integer, required)
  - Constraints: minimum: 0
- `mutationId` (string, required): Canonical lowercase UUID. This private identifier is not a PDS record.
  - Constraints: minLength: 36, maxLength: 36

### Output (application/json)

- `schema` (ref)
  - Reference: `app.thesocialwire.articleDraft.defs#document`

### Errors

- `InvalidRequest`: No description in schema.
- `Unauthorized`: No description in schema.
- `NotFound`: No description in schema.
- `Conflict`: No description in schema.
- `UploadPending`: No description in schema.
- `Quota`: No description in schema.
- `Unavailable`: No description in schema.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Owner-only encrypted server-private article drafts. Authentication required; owner comes only from the authenticated DID. Never publishes drafts or images to the PDS. Responses use private, no-store and nosniff. Storage unavailable returns Unavailable. Saves use expectedRevision CAS and durable mutationId idempotency; tombstones never resurrect. Explicit Publish/Schedule remain separate actions. Create uses expectedRevision 0; replaying an identical mutation returns the acknowledged snapshot, while conflicting payloads or revisions return Conflict. Clients resolve unlocked cross-device conflicts by payload.updatedAt (latest edit wins); ties, tombstones, and publication/schedule claims prefer the server.",
      "errors": [
        {
          "name": "InvalidRequest"
        },
        {
          "name": "Unauthorized"
        },
        {
          "name": "NotFound"
        },
        {
          "name": "Conflict"
        },
        {
          "name": "UploadPending"
        },
        {
          "name": "Quota"
        },
        {
          "name": "Unavailable"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "draftId": {
              "description": "Canonical lowercase UUID. This private identifier is not a PDS record.",
              "maxLength": 36,
              "minLength": 36,
              "type": "string"
            },
            "expectedRevision": {
              "minimum": 0,
              "type": "integer"
            },
            "mutationId": {
              "description": "Canonical lowercase UUID. This private identifier is not a PDS record.",
              "maxLength": 36,
              "minLength": 36,
              "type": "string"
            }
          },
          "required": [
            "draftId",
            "expectedRevision",
            "mutationId"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "ref": "app.thesocialwire.articleDraft.defs#document",
          "type": "ref"
        }
      },
      "type": "procedure"
    }
  },
  "id": "app.thesocialwire.articleDraft.delete",
  "lexicon": 1
}
```
