Taken from : https://www.shiftedup.com/2014/11/13/how-to-bulk-remove-files-from-slack
- Get a token from the Slack API page (https://api.slack.com/docs/oauth-test-tokens?)
- Copy the script above and save it as slack.py
- Plug your token in the code (using the _token variable)
- Install Python in your system if you don't have it already
- Install the (awesome) requests library
- Execute your script by running "python slack.py" (without the quotes)