-
-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't delete messages #86
Comments
maybe related to #73 |
Yes, as I wrote with |
Seemed to happen upon the same issue (at the same time no less!). Ran it with full perms on the bot user and the app access tokens; ran with both tokens as well (with --as_user as needed). I'm not getting backtraces (even on the first error), just this:
ad nauseum |
can you verify that you created the token as described in https://github.com/sgratzl/slack_cleaner2#token, please |
Indeed! It's made just according to that, and in fact I went ahead and gave it permissions it didn't even need. Everything short of If it helps, I'm trying to delete from the primary/#general channel: It definitely recognizes all the messages in there, but it doesn't seem to be capable of deleting them. |
@sgratzl as I already wrote in my initial post, I've created the token with the following scopes
these should suffice as far as I understand the instructions you mentioned. |
see instructions:
|
That was the problem, I used a Bot Token and not a User Token, maybe update the docs to make it more explicit, or better log an error with a helpful message when an I just checked this hint is missing in the readme for https://github.com/sgratzl/slack-cleaner |
I want to delete all messages from the Travis-CI App older than one month. However, I only get exceptions.
When executing this command:
slack-cleaner --token <hidden> --message --channel ci --bot --before 20200801 --perform
I've tried the
--as_user
as was mentioned in #73I get a slew of these messages
The Slack-Cleaner app has these scopes:
Context
Side Note
It seems that one has to add the app to a channel, otherwise I get this error.
The text was updated successfully, but these errors were encountered: