Simple script to delete all messages of a Discord text channel. The source is annotated and deliberately kept simple.
go get github.com/schwarz/discord-purge-channel
DISCORD_TOKEN="Bot <token>" DISCORD_CHANNEL_ID=<channel id> ./discord-purge-channel
discord-purge-channel is released under the MIT license. See LICENSE for details.