kfei / slack-cleaner

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

Direct message deleting. #88

Closed jaison10 closed 4 years ago

jaison10 commented 4 years ago

Delete all messages from a direct message channel

slack-cleaner --token --message --direct sherry --user johndoe

What's sherry and johndoe here?

sgratzl commented 4 years ago

this project is not maintained anymore, my fork is: https://github.com/sgratzl/slack-cleaner

re user names, you can use --info in the forked version which should list a list of users.

Note: due to Slack API restrictions, deleting direct messages is not fully supported. One can just deleted the direct messages send by the owner of the token. It is not possible to delete the message of the opposite side.