Auto-delete private 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