Skip to content

Instantly share code, notes, and snippets.

View rblakemesser's full-sized avatar

Blake Messer rblakemesser

View GitHub Profile
@rblakemesser
rblakemesser / slack_delete.py
Last active August 16, 2018 14:34 — forked from jackcarter/slack_delete.py
Delete Slack files older than 30 days. Rewrite of https://gist.github.com/jamescmartinez/909401b19c0f779fc9c1
import requests
import time
import json
token = ''
# Delete files older than this:
ts_to = int(time.time()) - 30 * 24 * 60 * 60
def list_files():