# $deleteMessages

`$deleteMessages` is another name of `$clearMessages[]`, added for scripts written for the BDFD announcement of 01/12/2026. It takes the same arguments and does the same thing; read the page of `$clearMessages` for the details.

## Syntax

```
$deleteMessages[channelID;amount;(deletePinned);(deleteBots)]
```

## Example

```bdfd
$deleteMessages[channelID;amount;deletePinned;deleteBots]
```
