Skip to content

Latest commit

 

History

History
29 lines (22 loc) · 881 Bytes

File metadata and controls

29 lines (22 loc) · 881 Bytes

sweep

https://img.shields.io/github/v/tag/lepisma/sweep.svg https://img.shields.io/github/actions/workflow/status/lepisma/sweep/rust.yml.svg

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:history
  • groups:history
  • im:history
  • mpim:history
  • chat:write
  • chat:write:user
  • chat: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.