Is it possible to delete emails from server at the same time as deleting them from my phone?

Any help would be appreciated.