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?
Who is Participating?
GeisrudSystems 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.
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.
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?
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

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.
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:,1665146
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.
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.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.