How to inactivate inactive users? Automation? Reminder e-mail?

Hi everyone,

What is your advice and best practice in regard to deactivating 'old' and inactive users? Do you have an automation in place where you automatically deactivate / remove members that have not been logged in for x months or years? Do you send them a reminder email and if yes, what email (and where to configure this)?

Thanks in advance!