# TargetDeleted Event

> Occurs when a link target or bookmark has been deleted from the document and passes the Long identifier of the deleted target to the handler.

- **Product:** TX Text Control ActiveX
- **Section:** Documentation
- **Kind:** Event
- **Path:** TX Text Control ActiveX > API Reference > TXTextControl > TargetDeleted Event
- **158 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/targetdeleted-event/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/targetdeleted-event/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/targetdeleted-event/llms-full.txt

---

Occurs when a link target or bookmark has been deleted.

Introduced: 28.0.

### Syntax

```vbscript
TargetDeleted(TargetId)
```

### Parameters

| Parameter | Description |
|---|---|
| TargetId | Is the identifier of the target that has been deleted. |

### Data Types

| Name | Data type |
|---|---|
| TargetId | Long |

### See Also

- [Marked Text Fields](https://docs.textcontrol.com/tx-text-control-activex/document-editor/fields/llms-full.txt)
- [TargetCreated Event](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/targetcreated-event/llms-full.txt)
- [Programming Category: Hypertext Links](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/hypertext-links/llms-full.txt)

---

## Nearby

- **Previous:** [TargetDelete Method](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/targetdelete-method/llms-full.txt)
- **Next:** [TargetGoto Method](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/targetgoto-method/llms-full.txt)
