Sweep personal messages from Slack DMs (including deactivated), groups, and channels. I am using this repository to learn Rust so the code will be in a bad state.
To use, you will need to create a Slack app with the following permissions on a user key:
channels:historygroups:historyim:historympim:historychat:writechat:write:userchat:write:bot
Then do the following:
# User ID is to filter your messages. Conversation ID is the ID of the DM,
# group, or channel to clean up.
sweep <USER-ID> <CONVERSATION-ID>As of now Slack’s API have time based rate limits of a form where concurrent requests don’t help, so sweep does sequential deletions.