We help IT Professionals succeed at work.

How can I delete gmail on my iphone and keep it on the gmail server?

I have an iPhone6, iOS v8.1.2.
I have a gmail account that I use the GMail web interface to access.
I also use my iPhone to access that GMail account.

I am trying to achieve 2 behaviours:
1. When I delete an email on my iPhone, I want it to still be in the inbox on my GMail account when I login thru the GMail web page there.

2. When I delete an email on my GMail account  through the GMail web page, I want it to no longer be on my iPhone.

#1 is of primary importance, #2 would be nice.

How can I accomplish this?
Comment
Watch Question

JohnBusiness Consultant (Owner)
Most Valuable Expert 2012
Expert of the Year 2018

Commented:
Number 1 cannot be done because the iPhone is merely a picture of what is in IMAP. Delete it on the phone deletes it from IMAP.

Number 2 is a given. Delete it from IMAP and it goes away on the phone within a few minutes.

Author

Commented:
Ok then, for #1, is there anything that I can do to get it out of the inbox (or my sight) on the phone and have it still be in the inbox on gmail?
JohnBusiness Consultant (Owner)
Most Valuable Expert 2012
Expert of the Year 2018

Commented:
No. It stays on the phone until you delete it from IMAP.

Sort the phone mail newest to oldest so that what is on the screen is newest.
You absolutely can do #1.
Just enable POP on gmail (it can accommodate POP side by side with IMAP) and set your iphone to pick up your gmail using POP rather than IMAP.

Instructions are here:

https://support.google.com/mail/troubleshooter/1668960?hl=en#ts=1665119,1665146
JohnBusiness Consultant (Owner)
Most Valuable Expert 2012
Expert of the Year 2018

Commented:
Yes you can use POP (I use POP) but iPhone uses IMAP and mail stays on the iPhone until deleted in IMAP by downloading into POP. You may not want to do this with multiple computers. So "absolutely" has some caveats.
You can set the iPhone, last time I looked, to use POP when fetching from gmail, just as it can from any other POP account.  You just don't set the account up (on the iPhone) as a gmail account, you set it up as an "other" POP account.
Systems Administrator
Commented:
On your iPhone, you can set your Gmail account to "move discarded messages into: Archive Mailbox".  This option is found under: Settings > "Mail, Contacts, Calendars > Your Gmail account > Account > Advanced.

This will effectively remove it from your phone, but still easily accessible when using Gmail's web interface.