Slack Cleaner



It works for me (free version), but it's painfully slow. However, slow is better than the 'not at all' option offered by slack themselves, so thank you for this extension. We used it to clean out the #general channel (which my group used as the main chat channel. I know, bad choice) to add another team in on the server.

Package Details: slack-cleaner 0.7.4-1

Slack Clear Message History

Click the link Services Slack Cleaner from the top menu and click the button named New Service In Step 1 - Sign In Slack, click button Sign In With Slack (or automatically redirected to Slack login page), login your Slack workspace and allow Message Bender app to delete. Slack’s principal weakness lies in its strength. Impressively, the app is able to run on iPhone, Android, Windows Phone, Linux, Windows, and Mac, as well as all major browsers for the web version. To optimally support this large codebase, Slack has opted to build what’s called progressive apps over native ones. Spring cleaning: tips for tidying up your channels. How and when to archive, mute, leave and star channels in Slack—keeping your workspace easy to navigate. Author: Matt HaugheyMarch 14th, 2019Illustration by Pete Ryan. The best wash kit and cleaning products offering a faster, safer, and easier cleaning experience for your dirt bike, motorcycle, atv, side-by-side, truck, jeep, car, boat, and more.

Package Actions

  • View PKGBUILD / View Changes
Git Clone URL: https://aur.archlinux.org/slack-cleaner.git (read-only, click to copy)
Package Base: slack-cleaner
Description: Delete slack message and files
Upstream URL: https://github.com/sgratzl/slack-cleaner
Licenses: MIT
Submitter: loonies
Maintainer: loonies
Last Packager: loonies
Votes: 1
Popularity: 0.002903
First Submitted: 2019-02-05 22:43
Last Updated: 2020-07-07 07:34

Dependencies (4)

  • python(python-dbg)
  • python-colorama(python-colorama-git)
  • python-setuptools(make)

Sources (1)

Bulk delete messages and files on Slack.

this is a fork of https://github.com/kfei/slack-cleaner

Install

Install from Pip:

current development version:

If you prefer Docker, there is a pre-built Docker image as well:

Just use docker run -it --rm sgratzl/slack-cleaner -c 'slack-cleaner ...' for each command or jump into a shell using docker run -it --rm sgratzl/slack-cleaner.

Install for Fedora or EPEL7

@rapgro maintains packages for both Fedora and EPEL7

Arguments

Permission Scopes needed

The permissions to grant depend on what you are going to use the script for.Grant the permissions below depending on your use.

Kfei

Beyond granting permissions, if you wish to use this script to deletemessages or files posted by others, you will need to be an Owner orAdminof the workspace.

Deleting messages from public channels

  • channels:history
  • channels:read
  • chat:write (or both chat:write:user and chat:write:bot for older apps)
  • users:read
Slack Cleaner

Deleting messages from private channels

  • groups:history
  • groups:read
  • chat:write (or chat:write:user for older apps)
  • users:read

Deleting messages from 1:1 IMs

  • im:history
  • im:read
  • chat:write (or chat:write:user for older apps)
  • users:read

Deleting messages from multi-person IMs

  • mpim:history
  • mpim:read
  • chat:write (or chat:write:user for older apps)
  • users:read

Deleting files

  • files:read
  • files:write (or files:write:user for older apps)
  • users:read

Usage

Slack Cleaner

Configuring app

The cleaner needs you to give Slack's API permission to let it run theoperations it needs. You grant these by registering it as an app in theworkspace you want to use it in.

You can grant these permissions to the app by:

  1. going to Your Apps
  2. select 'Create New App', fill out an App Name (eg 'Slack Cleaner') andselect the Slack workspace you want to use it in
  3. select 'OAuth & Permissions' in the sidebar
  4. scroll down to Scopes and select all scopes you need
  5. select 'Save changes'
  6. select 'Install App to Workspace'
  7. review the permissions and press 'Authorize'
  8. copy the 'OAuth Access Token' shown, and use this token as the --tokenargument to the script

Tips

Slack-cleaner Missing Scope

After the task, a backup file slack-cleaner.<timestamp>.log will be created in current directory if --log is supplied.

If any API problem occurred, try --rate=<delay-in-seconds> to reduce the API call rate (which by default is unlimited).

Slack-cleaner Failed To Delete Invalid Arguments

If you see the following warning from urllib3, consider to install missingpackages: pip install --upgrade requests[security] or just upgrade your Python to 2.7.9.

Credits

To all the people who can only afford a free plan. 😢