Discord Bot icon

Discord Bot

Send messages and manage slash commands for Discord bots

Bulk Delete Messages

AI-generated

Summary

Bulk-delete selected messages from a Discord channel by providing their IDs. The node uses the bot's Discord connection and returns the deleted messages as n8n items.

Inputs

  • Guild Names or IDs — Optional guild selection used to load available channels; defaults to an empty selection. You can also provide guild IDs with an expression.
  • Channel Name or ID (required) — Select the channel containing the messages, or provide its ID with an expression.
  • Message IDs (required) — Comma-separated message IDs or a JSON array of IDs to delete. Discord allows at most 100 per bulk delete; messages older than 14 days are skipped.

Output shape

A list of items representing deleted messages.

The operation performs a bulk deletion in the selected channel. Discord's 14-day age limit applies; older messages are skipped.

Links

Discussion