Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/sgreben/slack-wipe
- Owner: sgreben
- Created: 2019-06-29T02:52:17.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-08-14T13:43:34.000Z (over 5 years ago)
- Last Synced: 2023-12-02T14:50:26.290Z (about 1 year ago)
- Topics: api, batch, channel, delete, sad, slack
- Language: Go
- Homepage: https://github.com/sgreben/slack-wipe/releases/latest
- Size: 221 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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-..."
}
```