Delete old slack messages at a specific channel.
- Runtime: Python 3.x
- Replace
******
at line 12 ondelete_messages.py
to your slack API token.
$ python3 delete_messages.py CHANNEL_ID
You can specify multiple channel ids with following JSON data.
{
"target_ch_ids": [
"CHANNEL_1",
"CHANNEL_2",
"CHANNEL_3"
]
}
Thanks for the nice script !
I just noticed that the equation at line 21 is inversed.