# Discord channel cleanup for spam or repeat messages: n8n workflow

> Runs on demand, and works across Discord. 6 steps, 2 branches, 2 loops or waits: small enough to read in one sitting and change without fear.

Source: https://millionrounds.com/workflow/discord-channel-cleanup-for-spam-or-repeat-messages (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Alerts and monitoring](https://millionrounds.com/workflows?category=Alerts+and+monitoring#library)

# Discord channel cleanup for spam or repeat messages

Runs on demand, and works across Discord. 6 steps, 2 branches, 2 loops or waits: small enough to read in one sitting and change without fear.

Small

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fdiscord-channel-cleanup-for-spam-or-repeat-messages)

**6 steps** Small: readable in one sitting

**2** Branches: places the flow splits

**2** Loops or waits

**1** Service it connects to

## The flow

Logic 4 Service 2

The steps in the order they run, from what starts it.

- 1 **get data** Discord *Service*
- 2 **Loop Over Items1** Split In Batches *Logic*
- 3 **If word to be deleted is a match1** If *Logic*
- 4 **delete message** Discord *Service*
- 5 **if there is error1** If *Logic*
- 6 **Wait 1.5 secs1** Wait *Logic*

## How it's built

- **Starts on:** Nothing automatic; you run it
- **Steps:** 6, with 2 branches, 2 loops or waits
- **Size:** Small: readable in one sitting
- **Connects to:** Discord
- **Model:** None. This is plumbing, not judgement

## Questions

What does it need to run?

An n8n account, plus your own Discord account. You connect your own accounts after importing it; none are included.

What starts it?

Nothing starts it automatically. You run it by hand.

Does it use AI?

No. Every step is fixed logic or a call to a service, so it does the same thing every time.

How long does it take to set up?

Not long. At 6 steps it can be read in one sitting and changed without fear.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

**Before you run it**

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 6 steps before you point it at anything that matters.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fdiscord-channel-cleanup-for-spam-or-repeat-messages)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[Discord](https://millionrounds.com/workflows?service=Discord#library)

## Workflows like it

Also alerts and monitoring, with the same services where possible, closest in size first.

- [**Diesel logbook with Discord** 6 steps · Discord](https://millionrounds.com/workflow/diesel-logbook-with-discord-2)
- [**Diesel logbook with Discord** 6 steps · Discord](https://millionrounds.com/workflow/diesel-logbook-with-discord)
- [**Instagram Reel Downloader Template with Discord and Telegram** 6 steps · Discord, Telegram](https://millionrounds.com/workflow/instagram-reel-downloader-template-with-discord-and-telegram)
- [**Send Discord notifications when arriving/leaving home** 6 steps · Discord](https://millionrounds.com/workflow/send-discord-notifications-when-arriving-leaving-home)
- [**Send GitHub notifications to Discord webhook** 6 steps · Discord](https://millionrounds.com/workflow/send-github-notifications-to-discord-webhook)
- [**Send memes with Discord** 6 steps · Discord](https://millionrounds.com/workflow/send-memes-with-discord)
