# Delete Messages

**Introduction**&#x20;

This step allows for the bulk deletion of messages from a channel within a guild.

**Description**&#x20;

Executes a mass removal of messages sent within the past two weeks. Messages older than two weeks will be ignored. A list of messages for deletion can be gathered using the "Get Message History" step.

**Configuration**

* **Messages**: Input a list of messages to be deleted. You need to include at least 1 message, with a maximum of 500 messages.

**Usage**&#x20;

Effective for cleaning up channels by removing multiple messages simultaneously, particularly useful for moderating large volumes of messages or clearing channels after specific events or discussions.

**Permissions**

* Requires the "Manage Messages" permission to perform bulk message deletions.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.flexy.bot/modules/discord/steps/delete-messages.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
