Skip to content

deletes all your messages and/or files in a single Slack channel. single binary, no dependencies. linux, osx, windows. #golang

Notifications You must be signed in to change notification settings

sgreben/slack-wipe

Repository files navigation

slack-wipe

Deletes all your messages and/or files in a single Slack channel.

Alternatively, if you specify -redact mode, it edits all messages, replacing all non-(space-or-punctuation) characters with :

redact mode test!?
██████ ████ ████!?

Usage

  • Channel
    $ slack-wipe -token=API_TOKEN -channel=CHANNEL_NAME -messages -files
  • Direct messages
    $ slack-wipe -token=API_TOKEN -im=COMMA_SEPARATED_USERNAMES -messages -files
Usage of slack-wipe:
  -token string
        API token
  -channel string
        channel name (without '#')
  -im string
        comma-separated list of usernames
  -messages
        wipe messages (default false)
  -files
        wipe files (default false)
  -redact
        redact messages (instead of delete) (default false)
  -auto-approve
        do not ask for confirmation (default false)
  -config string
         (default "slack-wipe.json")

API Token

How to obtain a Slack API token

Config schema

Put this in a slack-wipe.json to avoid having to type out token/channel info on the command line:

{
    "Channel":  "channelname",
    "Token":    "xoxs-..."
}

About

deletes all your messages and/or files in a single Slack channel. single binary, no dependencies. linux, osx, windows. #golang

Topics

Resources

Stars

Watchers

Forks