kfei / slack-cleaner

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

Channel, direct message or private group not found/User ID? #68

Open angieology-zz opened 6 years ago

angieology-zz commented 6 years ago

I'm running slack-cleaner --token xx-xxx-xxx --message --direct U000000 --user U000001 --before 2018-08-01 user U000000 is my user ID (copied from slack, under user "userID") and the U000001 person I have direct message with, this channel definitely exists but I'm getting direct message not found. Am I using the wrong userID? ie. should I use their email, not sure because there is no username on my slack channel ie "johndoe" the format is "john doe" and is a first/last name string

angieology-zz commented 6 years ago

I see that slack deprecated usernames for UserIDs... I'm using userID's and it doesnt seem to be able to find direct messages

cjbirk commented 6 years ago

I'm not even able to delete private messages when specifying the user who i've chatted with. It just says user not found.

davidseek commented 5 years ago

+1

rajinder-yadav commented 5 years ago

I keep getting user not found error, it doesn't work on strings like "Joe Blow"

davidseek commented 5 years ago

@rajinder-yadav perform the same call with --info at the end. That will list you all the usernames.

This way I found the directmessage channel I tried to find on a string like "Joe Blow".

eotp commented 5 years ago

Same problem here, when trying to delete a direct messages I get Channel, direct message or private group not found.

@davidseek --info just gives me slack-cleaner: error: unrecognized arguments: --info