r/coolgithubprojects • • 37m ago

I made a free, open-source page to bulk delete your own Slack DM messages (runs in your browser, no server)

Post image

Slack only lets you delete messages one at a time. I needed to clear out thousands of my own messages in a direct message, so I built a small tool for it and made it public.

**What it does**

- Finds every message you sent in a DM, including thread replies and files you uploaded there

- Groups them by day so you can search, filter by date and untick anything you want to keep

- Flags messages that look like they contain a password or API key, so you know what to change

- Deletes only what's ticked, after you type DELETE, with a progress bar and a Stop button

**How it handles your account**

- It's one HTML file. No server, no sign-up, no analytics.

- You create your own private Slack app (the page pre-fills the settings, about 2 minutes) and paste its user token.

- The token stays in the tab's memory, and the page's security policy blocks every connection except slack.com.

- At the end it switches the token off for you.

**Limits**

- Only your own messages. Slack doesn't let you delete the other person's.

- About 50 deletions a minute (Slack's limit), so 3,000 messages take about an hour.

- Free plans only show roughly the last 90 days, and paid workspaces may keep copies for compliance.

- One-to-one DMs only for now.

Try it: https://dkdineshkumar007.github.io/slack-dm-cleanup/

Code (MIT): https://github.com/dkdineshkumar007/slack-dm-cleanup

Feedback welcome, especially on whether the app setup step is clear. Let me know if group DMs or channels would be useful.

1 Upvotes

0 comments sorted by