I currently have a golang bot in a mattermost channel that users use for Q&A. Is there a way to delete all messages in the channel at 23:59 every evening? Sort of like an auto refresh function.
This function will be helpful when in a scenario where a user might choose to scroll back into the chat bot’s history to find an answer instead of asking it.This can cause some confusion because the older information might not be current.
That sounds somewhat similar to the data retention feature in Enterprise Edition, but that’s configured on a system-wide basis, not for a single channel.
In terms of deleting posts with the command line, there’s no option to do that, so you’d need something custom to do it.