> For the complete documentation index, see [llms.txt](https://documentation.lynnux.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.lynnux.xyz/akira/moderation/softban.md).

# Softban

{% hint style="info" %}
`Softbanning a member will clear 7 days of their messages from the server.`
{% endhint %}

## Usage:

<table><thead><tr><th width="196">Command</th><th width="199.66666666666669">Options</th><th>Description</th></tr></thead><tbody><tr><td><code>a.softban</code></td><td>&#x3C;user> {reason}</td><td>Bans and immediately unbans the given member. </td></tr></tbody></table>

## Example:

<table><thead><tr><th width="297">Command</th><th>Description</th></tr></thead><tbody><tr><td><code>a.softban @member Annoying</code></td><td>kicks and removes all messages within 7 days from @member with reason "Annoying"</td></tr><tr><td><code>a.softban @member</code></td><td>kicks and removes all messages within 7 days from @member.</td></tr></tbody></table>

## Related Commands

{% content-ref url="/pages/WqPiwbKvhEVI9O6cJtGh" %}
[Ban](/akira/moderation/ban.md)
{% endcontent-ref %}

{% content-ref url="/pages/rtWYxN73Z66IXfyvT6y3" %}
[Kick](/akira/moderation/kick.md)
{% endcontent-ref %}
