Delete old messages?


#1

Hi folks,

I’m about to write something in PHP to clear chat history older than x days.

Before I do it, is there already something build in to RC?

Cheers!-


#2

There is not. I believe there is a PR in progress here:


#3

I’ve done this but use Mongo settings to auto-delete anything over x days. Happy to share settings if you’d find it useful


#4

I would love to get some help with that. I have installed the snap version of RC, but can’t access the Mongodb settings. So I am manually cleaning the rooms every night, which doesn’t work in the apps (history still visible until you reset the cached data) and all the files remain online on my server.

I really really would love to have the new option “Message retention policy and prunning” but I am still using 0.66.3 because that is the latest available snap version.

A temporary other solution would help me a lot!

Thanks,

Stef


#5

Que legal, poderia compartilhar comigo ? Estou em busca de algo assim há alguns dias já, mas, não está dando certo.


#6

The latest release should definitely have the message pruning feature now. Of course released on snap too


#7

Yes it is working very good now. Thanks!