How do I delete messages in bulk (/purge) and post a self-deleting message (/tempmessage)?

CommandsCleanupPurge

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:

SubcommandDeletes…Extra field
liensmessages containing a link—
imagesmessages containing an image or a GIF—
emojismessages with emojis—
botsmessages from bots—
membreone person’s messagesqui (required)
contientmessages that contain some texttexte (200 characters max)
depuismessages from the last few minutes or hoursduree, for example 10m, 2h, 3j
avantmessages older than a given durationduree
toutall 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

  1. Type /purge user
  2. In qui, choose the member
  3. In nombre, type 50
  4. 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: Moderation

Last checked: 13 November 2026.