# Delete Automation Draft

Deletes an inactive automation draft only when it has no contact history or dependencies. Referenced emails remain. Requires the current revision and explicit confirmation; there is no undo.

## Input schema:

```json
{
  "type": "object",
  "properties": {
    "automationId": {
      "type": "integer",
      "minimum": 1
    },
    "revision": {
      "type": "string",
      "pattern": "^[a-f0-9]{64}$"
    },
    "confirm": {
      "type": "boolean",
      "default": false
    },
    "accountId": {
      "type": [
        "null",
        "integer"
      ],
      "default": null,
      "minimum": 1
    }
  },
  "required": [
    "automationId",
    "revision"
  ],
  "additionalProperties": false
}
```

## Output schema:

```json
{
  "type": "object",
  "required": [
    "automationId",
    "deleted"
  ],
  "properties": {
    "automationId": {
      "type": "integer"
    },
    "deleted": {
      "type": "boolean"
    }
  }
}
```

