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?
cashonlyAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

JohnBusiness Consultant (Owner)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.
0
cashonlyAuthor 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?
0
JohnBusiness Consultant (Owner)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.
0
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

akahanCommented:
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
0
JohnBusiness Consultant (Owner)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.
0
akahanCommented:
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.
0
Joe RudSystems AdministratorCommented:
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.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Email Clients

From novice to tech pro — start learning today.