Automatically deleting mails on server and storing them localy

Automatically deleting mails on server and storing them localy

How can I automatically delete old emails in my Zoho inbox while keeping them stored locally in my Apple Mail email client?

I want this because I'm afraid that my inbox will get full. Also I've noticed that when I manually delete an email in my Zoho inbox, that it will also be deleted locally in my Apple Mail email client. That shouldn't be possible.