Remove Incoming Webhook messages after certain time
We integrate our MS Teams with Gitlab to get merge requests notifications and comments. The Webhook ends up generating a lot of messages and it would be nice to set up some sort of retention policy on just the Webhook messages to be able to delete them after a few days so that they are no longer saved in history.
Shallu Gupta Virmani commented
Is there any way to delete messages from teams channel using incoming webhooks depending on timestamp? similar to what we can do in slack using delete API.
Glenn Evershed commented
We have integrated Zendesk into Teams via webhook notifications as well and not all messages are relevant to the posted channel and should be able to be removed or deleted.
Or could we programatically delete by a property of the message, like the timestamp? Slack offers a chat.delete method: https://api.slack.com/methods/chat.delete