Ask coding questions

← Back to all posts
Delete all discord messages
JoeIsHere

So i wan't to do a simple command %DeleteAll to delete all messages in the text channel.

Voters
JoeIsHere
Comments
hotnewtop
Coder100

what language?

JoeIsHere

@Coder100 Im using python

Coder100
Coder100
SixBeeps

Something like this should work:

EDIT: Doing some research, it may not be possible to delete all messages at once, due to that being heavy on Discord's end. If you really want to delete every single message, you could just delete the channel entirely and create a new one.