Skip to content

Instantly share code, notes, and snippets.

View mounttam's full-sized avatar
👋

Brian Wilcox mounttam

👋
View GitHub Profile
@joshuajnoble
joshuajnoble / slackDownloadThenDelete.py
Last active February 16, 2018 05:46 — forked from jayliu50/slackDownloadThenDelete.py
Download then delete files older than 14 days from Slack
import sys
import requests
import json
import calendar
from datetime import datetime, timedelta
# This script will download, then delete the non-external files older than 14 days.
_token = "" # administrator token, from https://api.slack.com/web
_project = "" # project name, from http://[project].slack.com