slack-cleaner icon indicating copy to clipboard operation
slack-cleaner copied to clipboard

Unable to clean direct messages

Open jeremysshaw opened this issue 8 years ago • 9 comments

Thanks for this tool - it's been great. However, my direct messages are building, and I can't easily clean them.

I have tried multiple variations on the following: slack-cleaner --token --message --direct using the token for the . I've tried adding --user (both "*" and an actual user) and --rate=1, but always get the same result - "0 message(s) will be cleaned."

Any idea what I might be doing wrong?

btw, I'd love to be able to use "*" (or similar) as the param to --direct, as I need to script through all my users one-by-one :-/

Thanks much!

jeremy.

jeremysshaw avatar Jul 22 '16 00:07 jeremysshaw

I'm having the same issue.

brookeclonts avatar Feb 28 '17 20:02 brookeclonts

Same issue here! I can only delete half of the conversation in any direct message channel.

AdriaandeJongh avatar Jun 06 '17 08:06 AdriaandeJongh

btw, I'd love to be able to use "*" (or similar) as the param to --direct, as I need to script through all my users one-by-one :-/

I added a regex support in https://github.com/sgratzl/slack-cleaner for channel, group, and direct

sgratzl avatar Sep 11 '17 12:09 sgratzl

it seems like to be an slack restrictions, since I cannot delete direct messages from the opposite partner via the slack ui either.

sgratzl avatar Sep 11 '17 12:09 sgratzl

Anyone able to delete direct messages?

xtremedevhub avatar Oct 06 '17 14:10 xtremedevhub

I can:

docker run -it --rm sgratzl/slack-cleaner -c "slack-cleaner --token xoxp-XXXXXXXXX-XXXXXXXXXXXX-XXXXXXXXXXXXX-XXXXXXXXXXXXXXXXXXX --message --direct username1 --user username2 --perform --rate 1"

sintrix avatar Jun 21 '18 15:06 sintrix

I don't have a username for the direct messages channel i want to delete. Only a real name like "David Seek", I have tried --direct David\ Seek but doesnt seem to work. Still getting: Channel, direct message or private group not found

davidseek avatar Apr 03 '19 18:04 davidseek

if you use my fork version there is also the --info command listing all users, channels, ... with this you should be able to identify your user. Or you use the develop version in which you have more control how to identify the user

sgratzl avatar Apr 04 '19 11:04 sgratzl

Yeah. Using --info I have been able to get the userID. Thank you

davidseek avatar Apr 06 '19 01:04 davidseek