> For the complete documentation index, see [llms.txt](https://docs.flexy.bot/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.flexy.bot/modules/discord/steps/ban-member.md).

# Ban Member

**Introduction**&#x20;

This step enforces a ban on a specified member in a guild.

**Configuration**

1. **Guild**: The guild from which the user will be banned. This field is required to ensure the action is applied to the correct server.
2. **User**: The user to be banned. This field is required to identify the target of the ban action.
3. **Reason**: (Optional) Provide a reason for the ban. Maximum length is 512 characters.
4. **Delete Message History**: (Optional) Specify the duration (in milliseconds) for which the member's message history should be deleted. The range is from 0 (no deletion) to 7 days.

**Usage**&#x20;

Essential for maintaining community standards and enforcing guild rules, by removing members who violate guidelines.

**Permissions**

* Requires the "Ban Members" permission to execute this action.
