Skip to content

Instantly share code, notes, and snippets.

View acrain's full-sized avatar

Andy Crain acrain

View GitHub Profile

Keybase proof

I hereby claim:

  • I am acrain on github.
  • I am apcrain (https://keybase.io/apcrain) on keybase.
  • I have a public key ASAfkof_cqITnsNMNGimPRpwv_FCK9t8EU2wy5A_eHLBnAo

To claim this, I am signing this object:

@acrain
acrain / slack-delete-files.js
Created May 3, 2017 16:14 — forked from felixexter/slack-delete-files.js
slack-delete-files.js
function deleteFiles(types = 'all') {
let files = [];
function deleteFilesByTypes(types, page = 1) {
TS.api.call('files.list', {
types,
user: boot_data.user_id,
page
}, (a, data) => {
files = [...files, ...data.files];