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

Delete message a certain BOT?

Open magicstone1412 opened this issue 10 years ago • 3 comments

Your application is great! It works like a charm. I have a special case I use some different BOT in a channel. How can I delete messages of certain BOT? Again, thank you very much

magicstone1412 avatar Nov 21 '15 10:11 magicstone1412

Currently there is no argument to specify this. But if you try to delete all messages on a channel with certain BOT's API key, it'll just delete messages of that BOT (since the API key does not have any privilege on others messages. Of course any PR for this feature will be appreciated! :)

Thank you!

kfei avatar Nov 21 '15 16:11 kfei

This doesn't work for App BOTs (such as the jenkins integration) as they don't have permissions to delete any messages.

https://api.slack.com/bot-users

TD-4242 avatar Apr 19 '16 21:04 TD-4242

Supporting deleting messages from a bot that match a certain pattern in the body of the message would be powerful too. Basically a conditional delete. I guess we could always query first and delete iteratively too.

This is some great python tooling though digging into slack to clean things up. Great work.

jxramos avatar Jan 29 '21 20:01 jxramos