Created
November 25, 2016 15:58
-
-
Save sdepablos/63174178d20e24bf7dfec796ab034353 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| curl -s "https://slack.com/api/files.list?token=<your_token>&count=1000&page=1&pretty=1" | grep '"id":' | awk -F'"' '{print $4}' | xargs printf "curl -s 'https://slack.com/api/files.delete?token=<your_token>&file=%s&pretty=1'" | bash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment