How can I delete emails from both my iPhone, MacBook and the google server, all at the same time?

when I remove an email from my Mac or iPhone it does not shown to be removed from the other. It stays on the server, I have to remove the email separatly from each one. It has worked so that each has been removed before. Using Sierra, and iOS.
Try logging into gmail from a safari browser. Then delete said emaiils

Original thread: https://forums.imore.com/threads/how-can-i-delete-emails-from-both-my-iphone-macbook-and-the-google-server-all-at-the-same-time.376358/