Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sgreben/slack-wipe

deletes all your messages and/or files in a single Slack channel. single binary, no dependencies. linux, osx, windows. #golang
https://github.com/sgreben/slack-wipe

api batch channel delete sad slack

Last synced: 26 days ago
JSON representation

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

Awesome Lists containing this project

README

        

# 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 `█`:

```text
redact mode test!?
██████ ████ ████!?
```

## Usage

- Channel
```sh
$ slack-wipe -token=API_TOKEN -channel=CHANNEL_NAME -messages -files
```
- Direct messages
```sh
$ 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](https://github.com/jackellenberger/emojme#finding-a-slack-token)

## Config schema

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

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