Archiving Data and Files

We are trying out the Mattermost team edition and looking for a way to archive/delete messages and files

Please see:

Oh sorry. By Archiving I meant actually removing it from database and not just hiding it.

Hello, @mavila

If you are looking at removing messages completely (and automatically), the data retention is the way to go in the long run.

On the other hand, you can manually delete posts in the database that have a CreateAt before a certain date as well. Since it is not officially supported, I would recommend you to test this on a staging / development instance first (if possible) before implementing it on the production server. For example:

DELETE FROM Posts WHERE CreateAt < <epoch_date_time>;