Automation library · Alerts and monitoring

Bulk delete Slack messages

Started by another system calling it, and works across Slack. 48 steps, 5 branches, 12 loops or waits: large, and worth reading before you trust it with anything live.

Large

48 stepsLarge: read it before trusting it with anything live
5Branches: places the flow splits
12Loops or waits
1Service it connects to

The flow

Starts it 1Logic 27Service 20

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

  1. 1WebhookWebhookStarts it
  2. 2Prepare Messages for Deletion NodeCodeLogic
  3. 3Respond to WebhookCodeLogic
  4. 4Store Message InfoCodeLogic
  5. 5SwitchSwitchLogic
  6. 6Check User MessageCodeLogic
  7. 7Instruction MessageSlackService
  8. 8Parse CommandCodeLogic
  9. 9If1IfLogic
  10. 10Wait1WaitLogic
  11. 11Prase SetSetLogic
  12. 12Delete or Cancel?IfLogic
  13. 13Send Cancel MessageSlackService
  14. 14Delete InstructionSlackService
  15. 15Check if Valid CommandIfLogic
  16. 16Loop Over MessagesSplit In BatchesLogic
  17. 17Send Progress ConfirmationSlackService
  18. 18Wait Cancel MessageWaitLogic
  19. 19Get Channel MessagesSlackService
  20. 20Send Error MessageSlackService
  21. 21Code CountCodeLogic
  22. 22Wait Between DeletesWaitLogic
  23. 23Wait Progress MWaitLogic
  24. 24Delete Cancel MessageSlackService
  25. 25Filter Messages by Search TermCodeLogic
  26. 26Error ReportSlackService
  27. 27Wait Error FinalWaitLogic
  28. 28Send Completion MessageSlackService
  29. 29Delete MessageSlackService
  30. 30Delete Progress MSlackService
  31. 31Messages Found?IfLogic
  32. 32Wait Error ReportWaitLogic
  33. 33Delete Error MessageSlackService
  34. 34WaitWaitLogic
  35. 35Post Error FinalSlackService
  36. 36Store Pending DeletionCodeLogic
  37. 37Send Confirmation MessageSlackService
  38. 38No Messages FoundSlackService
  39. 39Delete Report ErrorSlackService
  40. 40Clean Up Workflow MessagesCodeLogic
  41. 41Wait for Error FinalWaitLogic
  42. 42Wait ConfWaitLogic
  43. 43Wait No.M FinalWaitLogic
  44. 44Loop Over ItemsSplit In BatchesLogic
  45. 45Delete Error FinalSlackService
  46. 46Delete ConfSlackService
  47. 47Delete No MessagesSlackService
  48. 48Delete Workflow MessagesSlackService

How it's built

Starts on
Another system calling it
Steps
48, with 5 branches, 12 loops or waits
Size
Large: read it before trusting it with anything live
Connects to
Slack
Model
None. This is plumbing, not judgement

Questions

What does it need to run?

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

What starts it?

It starts on another system calling it.

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?

Take your time. At 48 steps it is large: read it before trusting it with anything live.

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 48 steps before you point it at anything that matters.