# Delete Message

> Delete a message by its ID from a channel.

- ID: `delete_message`
- Type: Block
- Category: [Messages](https://inventor.bot/docs/reference/blocks/messages.md)

**Inputs**

| Name | Required | Description | Value |
| --- | --- | --- | --- |
| `channel_id` | yes | ID of the channel containing the message. |  |
| `message_id` | yes | ID of the message to delete. |  |

**Example**

```go
delete_message(Args{channel_id: trigger.channel_id, message_id: trigger.message_id})
```