# Delete Smart Link

Deletes a Smart Link and its click tag after dependency checks; while a campaign, form or other object still uses it, the deletion is refused and names each of them. Pass confirm=true only after the user explicitly confirmed deleting this link.

## Input schema:

```json
{
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "minimum": 1
    },
    "confirm": {
      "type": "boolean",
      "default": false
    },
    "accountId": {
      "type": [
        "null",
        "integer"
      ],
      "default": null,
      "minimum": 1
    }
  },
  "required": [
    "id"
  ],
  "additionalProperties": false
}
```

## Output schema:

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

