Skip to content

Instantly share code, notes, and snippets.

@yezooz
yezooz / slack_delete.py
Created December 10, 2018 15:23 — 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():