Explanation

The purge command can be used to delete many messages at once.
/purge <amount>

Flags

Our purge command currently has two flags:
  • --before=<message_id>: This flag will delete all messages before the message with the given ID.
  • --after=<message_id>: This flag will delete all messages after the message with the given ID.
So for example, you can do:
/purge <amount> --flag=<message_id>