Careful with that command – that won’t just delete email, that will delete all user files in /home older than $days.
You may want to have it be more specific about what directories to delete email from – for example, all the email exists in a directory called “Maildir”, you could make sure you’re only deleting files from within that.
-Eric