# channels.deleteTopicHistory

Delete message history of a [forum topic](/api/forum.md)

No such method in the current schema.

### Parameters

| Name | Type | Description |
| --- | :---: | --- |
| **channel** | [InputChannel](/type/InputChannel.md) | Forum |
| **top\_msg\_id** | [int](/type/int.md) | Topic ID |

### Result
[messages.AffectedHistory](/type/messages.AffectedHistory.md)

### Both users and bots can use this method

### Possible errors

| Code | Type | Description |
| --- | --- | --- |
| 400 | CHANNEL\_FORUM\_MISSING | This supergroup is not a forum. |
| 400 | CHANNEL\_INVALID | The provided channel is invalid. |
| 403 | CHAT\_WRITE\_FORBIDDEN | You can't write in this chat. |
| 400 | TOPIC\_ID\_INVALID | The specified topic ID is invalid. |

### Related pages

#### [Forums](/api/forum.md)
Telegram allows creating forums with multiple distinct topics.