delete your ten newest matching messages in the current channel.
.delete -n 10delete your own messages using text, attachment, channel, and history filters.
.d.delete [options]<required> · [optional] · replace placeholders before sending.
-n, --number <count>limit the number of matching messages to delete. without this option, all matching messages are selected. for a scope, the limit is shared across its channels.
-f, --filter <text>match a case-sensitive substring in message text. multiword text continues until the next flag.
-e, --exceptinvert the combined text and attachment filters. cannot be combined with --message or --scope.
-m, --message <message_id>use a message as an exclusive history boundary. select newer messages by default, or older messages with --reverse.
-c, --channel <channel_id/user_id>target a text channel, thread, dm, group dm, or a user's dm by numeric id. ignored when --scope is used.
-r, --reverseprocess messages from oldest to newest. also changes the message boundary to select older messages.
-a, --attachments <types>match images, videos, files, links, or all. combine types with commas, such as images,links. image and video embeds are included, and links can come from message text, embeds, or attachments.
--skip-pinnedskip pinned messages.
-s, --scope <guilds|dms>search all server text channels, or open and friend dms. a dm-scope deletion first closes nonblacklisted open dms.
-v, --verifypreview the selection. for a channel, send messages.txt. for a scope, list affected servers or dms.
-h, --helpshow the command's built-in help.
delete your ten newest matching messages in the current channel.
.delete -n 10preview up to ten messages containing the exact substring old draft.
.delete -f old draft -n 10 -vdelete up to twenty matching image or link messages in a target channel or dm.
.delete -c 123456789012345678 -a images,links -n 20 --skip-pinnedlist servers containing messages that match the filter.
.delete -s guilds -f old draft -v