Skip to content

Instantly share code, notes, and snippets.

View isyutaro's full-sized avatar
🏠
Working from home

Jean Sanchez isyutaro

🏠
Working from home
  • Mexico
  • 19:51 (UTC -06:00)
View GitHub Profile
@iamstuartwilson
iamstuartwilson / slack-file-killer.js
Last active November 29, 2024 09:57
Kill multiple slack files from your browser console. Simply paste this code when on the "https://[space].slack.com/files/[me]" page.
(function(){
function killIt(id) {
console.log(id);
$.post('/api/files.delete', {
file: id,
token: boot_data.api_token
}, function(data) {
console.log(data);
});
@jackcarter
jackcarter / slack_delete.py
Last active February 11, 2025 15:46
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():