How do I delete messages in bulk (/purge) and post a self-deleting message (/tempmessage)?
The /purge command deletes messages in bulk, by type or by author. It requires the Manage Messages Discord permission.
Choose what to delete
After /purge, Discord offers a subcommand:
| Subcommand | Deletes… | Extra field |
|---|---|---|
liens | messages containing a link | — |
images | messages containing an image or a GIF | — |
emojis | messages with emojis | — |
bots | messages from bots | — |
membre | one person’s messages | qui (required) |
contient | messages that contain some text | texte (200 characters max) |
depuis | messages from the last few minutes or hours | duree, for example 10m, 2h, 3j |
avant | messages older than a given duration | duree |
tout | all messages | — |
Common options
nombre: the maximum number of messages to examine (100 by default).salon: the channel to clean (by default, the one where you type the command).epingles: no by default; set it to yes to also delete pinned messages.
Example
- Type
/purge user - In
qui, choose the member - In
nombre, type 50 - Confirm Their recent messages (among the channel’s last 50) are deleted.
Irreversible
A deleted message does not come back. Discord also does not allow bulk deletion of messages older than 14 days.
A message that deletes itself (/tempmessage)
/tempmessage posts a message that deletes itself. Fields: message (1,800 characters max) and secondes (from 5 to 3,600). Handy for a short announcement.
Still stuck?
Contact support with the title of this article, the step where you are stuck and what you see on screen.
Contact support More articles: ModerationLast checked: 13 November 2026.