---
title: "Purge on leave"
key: "autopurge"
type: "toggle"
section: "Service"
section_id: "service"
default: "off"
paid: false
groups_only: true
bot_path: "/config → ⛽ Service → Purge on leave"
web_panel_path: "lols.bot/adminka → your chat → ⚙️ Settings → ⛽ Service → Purge on leave"
url: "https://lols.bot/docs/en/autopurge/"
md_url: "https://lols.bot/docs/autopurge.en.md"
lang: "en"
alternate: "https://lols.bot/docs/autopurge.md"
updated: "2026-11-27"
---

# Purge on leave

Default: off · key autopurge · groups only

## What it does

If enabled, the bot deletes all messages sent by a user in the last 48 hours when they leave the group (or are banned).

## How to enable

- **In the bot:** Open the settings: the `/config` command in the group or in a private chat with [@lolsbot](https://t.me/lolsbot), or the link [t.me/lolsbot?start=config](https://t.me/lolsbot?start=config). Pick the chat → “⛽ Service” → “Purge on leave” (a toggle: tap it to turn it on or off).
- **In the web panel:** [lols.bot/adminka](https://lols.bot/adminka) → your chat → “⚙️ Settings” → “⛽ Service” → “Purge on leave”.
- **Who can change it:** [A chat admin with the right to ban users (the owner always can).](https://lols.bot/docs/install.en.md)

## Limitations

- Groups only: channel settings do not have this item.

## Related options

- [All options of “Service”](https://lols.bot/docs/service.en.md)

## FAQ

### How do I enable “Purge on leave” in a Telegram group?

Open the settings: the /config command in the group or in a private chat with @lolsbot, or the link t.me/lolsbot?start=config. Pick the chat → “⛽ Service” → “Purge on leave”. The same can be done in the web panel lols.bot/adminka: your chat → “⚙️ Settings” → “⛽ Service” → “Purge on leave”. Settings can be changed by a chat admin with the right to ban users. No, it is off by default — turn it on in the chat settings.

### What does “Purge on leave” do in @lolsbot?

If enabled, the bot deletes all messages sent by a user in the last 48 hours when they leave the group (or are banned).

### Is “Purge on leave” enabled by default?

No, it is off by default — turn it on in the chat settings.

### Does “Purge on leave” work in channels?

No. It is a groups-only setting: channel settings do not have it.
