Any setting to auto-delete personal messages older than N days?

Thank you for your replies, pfaffman & JammyDodger.

Is there a plugin? Or it needs to be custom-built?

I’m trying to purge inactive, old conversations - something our compliance team wants us to explore.

If there are ongoing conversations, they remain unaffected. Only conversations that are inactive for over a year.