# Delete Newsletter Draft

Deletes an email newsletter draft, its email, audience conditions and system tags without undo. Refuses scheduled or sent newsletters, referenced drafts and split tests; dependency refusals name what still uses the draft; a split-test refusal returns the appUrl for manual deletion. Only delete a draft the user explicitly asked to delete.

## Input schema:

```json
{
  "type": "object",
  "properties": {
    "newsletterId": {
      "type": "integer",
      "description": "ID of the newsletter to delete",
      "minimum": 1
    },
    "accountId": {
      "type": [
        "null",
        "integer"
      ],
      "description": "User ID of the account; omit for the account the access token works in",
      "default": null,
      "minimum": 1
    }
  },
  "required": [
    "newsletterId"
  ],
  "additionalProperties": false
}
```

## Output schema:

```json
{
  "type": "object",
  "required": [
    "accountId",
    "newsletterId",
    "name",
    "deleted",
    "deletedEmailId"
  ],
  "properties": {
    "accountId": {
      "type": "integer"
    },
    "newsletterId": {
      "type": "integer"
    },
    "name": {
      "type": "string"
    },
    "deleted": {
      "type": "boolean"
    },
    "deletedEmailId": {
      "type": "integer"
    }
  }
}
```

