Auto-delete personal messages older than 60 days?

Hi everyone,

I’m looking for a way to automatically delete private messages (PMs) that are older than 60 days on my Discourse forum. We’re seeing a large volume of PMs due to users interacting with an AI chatbot integration, and most of these messages are not useful after a certain period.

Is there a built-in setting or a plugin that allows for the automatic deletion of PMs after a specified time, say 60 days? Ideally, I’d like to be able to configure this globally in the admin settings for all users, not on a user-by-user basis.

I’ve searched through the admin settings and Meta, but I haven’t found a solution yet. Any help or guidance would be greatly appreciated!

I think that’d take a custom plugin.

3 Likes

i would also like to know as this is a concern for us as well. Having all the collective thought of your users sets you up for scams and social engineerings and all kinds of problems.

i had set PMs to auto delete hoping that would fix it but no.

Only the users whose messages they are can see them. Who is going to scam them?

It would still take a plugin.

I think what I would do is just remove the users from the pm. It would still exist but only staff with the url could see them.

You could then maybe completely remove them after some other waiting period.