# Ban a member

> Remove a member from the server for good.

Source: https://docs.buildcord.dev/nodes/members/ban/

`member.ban` removes a member and stops them rejoining until someone [unbans](https://docs.buildcord.dev/nodes/members/unban) them.

## Settings

| Setting | What it does |
| --- | --- |
| Member | Who to ban. See [Members](https://docs.buildcord.dev/nodes/members). |
| Audit log reason | The reason Discord records. |
| Delete their messages from the last | None, an hour, a day, 3 days or a week, or any length up to 7 days, such as `12h`. |

## Ways out

`out`. Turn on **If it fails** for a red way out.

## Notes

- The bot needs the Ban Members permission, and its highest role must sit above the member's.
- The canvas shows the reason, or "No reason given".
- Older flows had a switch for the last 24 hours of messages. It now reads as a day.

> **Warning**
>
> Guard it with a [Permissions](https://docs.buildcord.dev/nodes/conditions/permissions) check. A ban is hard to undo.

## Related

- [Kick a member](https://docs.buildcord.dev/nodes/members/kick)
- [Unban someone](https://docs.buildcord.dev/nodes/members/unban)
- [Direct message](https://docs.buildcord.dev/nodes/messages/direct-message), to tell the member first.
