# Thread Deleted

> Triggers when a thread is deleted.

- ID: `thread_delete`
- Type: Event trigger
- Category: [Threads](https://inventor.bot/docs/reference/triggers/threads.md)

**Outputs**

| Name | Description | Value |
| --- | --- | --- |
| `thread_id` | ID of the thread that was deleted. | e.g. `"123456789012345678"` |
| `server_id` | ID of the server where the thread was deleted. | e.g. `"345678901234567890"` |
| `parent_id` | ID of the parent channel. | e.g. `"234567890123456789"` |

**Example**

```go
var trigger = thread_delete()

func main() {
	send_text_message(Args{
		channel_id:      "CHANNEL_ID",
		message_content: "Thread ID: " + trigger.thread_id,
	})
}
```