# Delete Saved Email Template

Deletes a saved email template permanently. Emails made from it keep their content. Pass confirm=true only when the user asked to delete this template.

## Input schema:

```json
{
  "type": "object",
  "properties": {
    "templateId": {
      "type": "integer",
      "description": "ID of the saved template to delete",
      "minimum": 1
    },
    "confirm": {
      "type": "boolean",
      "description": "true only when the user asked to delete this template",
      "default": false
    },
    "accountId": {
      "type": [
        "null",
        "integer"
      ],
      "description": "User ID of the account; omit for the account of the access token",
      "default": null,
      "minimum": 1
    }
  },
  "required": [
    "templateId"
  ],
  "additionalProperties": false
}
```

## Output schema:

```json
{
  "type": "object",
  "required": [
    "accountId",
    "templateId",
    "name"
  ],
  "properties": {
    "accountId": {
      "type": "integer"
    },
    "templateId": {
      "type": "integer"
    },
    "name": {
      "type": "string"
    }
  }
}
```

