{
  "$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
}
