Documentation & API Reference
Everything needed to install, operate, and govern Bulk Message Remover. Architecture lifecycle, complete syntax catalog, limits, and security scopes.
How Bulk Message Remover Works
Bulk Message Remover is an open-source, stateless Slack automation application. It operates without database message storage, maintaining strict zero-retention compliance while enabling individual workspace members to prune stale conversations, uploaded attachments, and credentials.
Messages streamed only in volatile RAM during filter comparison.
User tokens scoped strictly to authenticating user id.
Permanent destruction requires explicit keyword confirmation.
Execution Engine & Memory Lifecycle
Stateless volatile stream specification
Workspace App Manifest Schema (JSON)
Workspace administrators install this manifest into their Slack API App Console to register the /clean command.
{
"display_information": {
"name": "Bulk Message Remover",
"description": "Purge your own messages and attachments in bulk."
},
"features": {
"slash_commands": [
{
"command": "/clean",
"description": "Interactive Slack bulk message scrubber",
"should_escape": false
}
]
},
"oauth_config": {
"scopes": {
"user": [
"channels:history",
"groups:history",
"im:history",
"mpim:history",
"chat:write"
],
"bot": [
"commands"
]
}
}
}Command Reference & Syntax Catalog
Every operation is triggered via the universal /clean slash command. Filter parameters can be concatenated in any arbitrary order.
Current Channel Dry-Run (Default Safe Mode)
safepreviewhereScans the current channel for your messages older than 30 days. No messages deleted.
/clean here older:30dWorkspace-Wide Stale Media Quota Purge
quotamediaalldeletePurges uploaded photos and GIFs older than 90 days across every room to free quota.
/clean all older:90d only:pics deleteEmergency Credential Scrub
emergencysecuritykeyworddeleteInstantly scrubs an accidental API key or confidential secret disclosed in the past hour.
/clean here newer:1h keyword:sk_live deleteComplete Direct Message Stale History Scrub
dmretentiondeleteRemoves all 1-year+ old direct messages across all your 1:1 and group DMs.
/clean dm older:365d deleteStale PDF and Document Cleanup
filesheredeleteCleans out all old PDF, ZIP, and binary file attachments in the current conversation.
/clean here older:60d only:files deleteGlobal Preview for Specific Search Term
previewallkeywordPerforms a harmless dry-run across all accessible conversations for the term "deprecated".
/clean all keyword:deprecated| Scope Modifier | Target Room Scope | Operational Rule |
|---|---|---|
| here | Active Channel Only | Default safe scope. Only scans the current channel or DM. |
| all | Every Joined Room | Iterates through all public/private rooms and DMs you participate in. |
| dm | Direct Messages Only | Restricts scanning strictly to 1-on-1 and group Direct Message threads. |
| #channel | Explicit Target Room | Cleans target channel without switching your current active room. |
Troubleshooting Matrix & Error Runbook
Diagnostic resolutions for common OAuth session timeouts, rate limits, and permission constraints.
Your OAuth authorization session expired or was revoked in Slack.
Execute /clean login in any channel to complete a fresh 1-click authorization handshake.
Filter expressions (e.g. older:90d) matched no messages authored by your user ID.
Broaden your parameters (e.g. try older:7d), remove keyword constraints, or confirm your channel scope.
Slack temporarily flagged high API traffic from your workspace token.
The background worker detects Retry-After headers automatically, pauses safely, and resumes without message loss.
The bot integration has not been invited into the private room.
Type /invite @Bulk Message Remover into the private channel, or use /clean here.
API Limits & Adaptive Throttling
Slack enforces a Tier 3 rate limit on the chat.delete endpoint (~50 deletions per minute per user). Our worker implements an adaptive token-bucket throttler that guarantees zero 429 rate limit suspensions:
Strict adherence to Slack Tier 3 rate limits
Autonomously processed in background
Safe to close Slack and shut down computer
Slack OAuth Permissions Explained
Every permission scope requested by Bulk Message Remover is strictly scoped to your authenticating user account. The app can never view or delete communications written by your colleagues.
| OAuth Scope | Token Type | Technical Purpose | Access Boundary |
|---|---|---|---|
| channels:history | User Token | Read public channel history to match your message filters | Public conversations you have joined |
| groups:history | User Token | Read private channel history to evaluate filter criteria | Private channels where you are an active member |
| im:history | User Token | Identify past messages sent by you in 1-on-1 Direct Messages | Personal Direct Message conversations |
| mpim:history | User Token | Identify past messages sent by you in Group Direct Messages | Group Direct Messages you are included in |
| chat:write | User Token | Execute chat.delete to permanently purge matched messages | Your authored messages only (never messages of colleagues) |
| commands | Bot Token | Register and handle /clean slash commands within Slack | Workspace slash command dispatcher |
- Messages authored by your authenticating user ID
- Files, images, code snippets, and PDFs uploaded by you
- Thread replies authored by you in any channel you belong to
- Messages in private rooms and DMs where you are a member
- Messages sent by any other colleague or team member
- Bot messages, third-party webhooks, and automation feeds
- Channels or Direct Messages you have not joined
- System notices (user join/leave notices, canvas records)