# Delete Shared Marketing Campaign Template

Deletes a shared automation template, subject to the app's dependency checks. Its link no longer imports anything; automations imported before stay in the importing accounts. Cannot be undone. Pass confirm=true only after the user confirmed deleting this shared automation template.

## Input schema:

```json
{
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "description": "ID of the shared automation template, from search-shared-automation-templates",
      "minimum": 1
    },
    "confirm": {
      "type": "boolean",
      "description": "true only after the user confirmed deleting this shared automation 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": [
    "id"
  ],
  "additionalProperties": false
}
```

## Output schema:

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

