kfei / slack-cleaner

:speech_balloon: Bulk delete messages and files on Slack
MIT License
1.24k stars 144 forks source link

Always show 0 messages to delete or can't find. #61

Open Gmagella opened 6 years ago

Gmagella commented 6 years ago

I'm trying "slack-cleaner --token "xoxp-XXX" --message --channel "geraldotest"" and it's only listing 0 messages, no matter what....

Also tryed: slack-cleaner --token "xoxp-XXX" --message --direct user1--user me_user2 I get: Running slack-cleaner v0.3.0 Channel, direct message or private group not found

Any hint on what might be happening? Any way that I can see debugging info? Thank you.

pankaz commented 6 years ago

The following command worked for me:

slack-cleaner --token=xoxp-XXX --message --channel=general --bot --perform --rate 1

sgratzl commented 6 years ago

re first case: you have to add --user=* to select all users in this channel re second case: are you sure that the user1 has really that name? like in my case the visual name is different from the internal name

shruthibadri commented 6 years ago

Your username is different form first name and @name. Slack is phasing out showing usernames, but if you need to check what yours is, you can check here: https://api.slack.com/methods/users.list/test