Delete mails from server

Is it possible to delete the email from the server once imported in Mailspring?
I would like to keep my mailbox server clean, for I don’t have infinite storage data, and when I imported mail in Gmail it usually deleted the server while importing it.
Is there a way to do it?