---
title: "Clear"
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.utilbot.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Clear

## Command
```txt
/mod clear [message_num]
```

## Description
Deletes all, or a specific amount of messages in the Chat.

## Permission
`MANAGE_MESSAGES`

## Arguments
| Name | Type | Description | Sample Data |
| ---- | ---- | ----------- | ----------- |
| `message_num` | number | The amount of messages to delete. Min 1, max 100. Default: 100 | `20` |

## Sample Response
![Image](https://cdn.utilbot.co/2021-05-28_38b3a317-4396-48bb-819e-f9e884552bb8.png)

Source: https://docs.utilbot.co/commands/moderators/clear/index.mdx
