Moved many emails to Outlook external folder, need to delete on Gmail server

James Snell

Member
Outlook version
Outlook 2016 32 bit
Email Account
IMAP
I’m using Gmail through Outlook with IMAP. My Gmail account is nearly full. I need to delete many emails from the Gmail server, but still keep them on my computer.

I started by moving a large set of emails from my Outlook inbox to an Outlook external folder (data file). Now I need to delete them on the Gmail server. There are too many to delete individually (about 100,000), so I'll need to delete them as a group. In Outlook they're all together in the external folder, but on the Gmail website they're not together in any way, they're scattered through All Mail, and they have no common attribute to search for.

I tried flagging them in the Outlook external folder, hoping the flags would be reflected as starred on the Gmail website, allowing me to delete them as a group. But the flagged emails in the Outlook external folder didn’t become starred on the Gmail website. (Apparently only emails in Outlook's inbox, when flagged, are mirrored as starred on the Gmail website.)

I've looked for some way to give an attribute to the emails in the Outlook external folder, so that I could use Gmail's search to find only these emails, and then select and delete them. So far I haven't found a way to do this.

Many Gmail users who use Outlook with IMAP will eventually need to delete emails in bulk from the Gmail server, while keeping them on their computer. Surely there’s a way to do this. Many thanks to anyone with a solution!
 

Vincenzo

Senior Member
Outlook version
Outlook 2016 32 bit
Email Account
IMAP
Many Gmail users who use Outlook with IMAP will eventually need to delete emails in bulk from the Gmail server, while keeping them on their computer. Surely there’s a way to do this.

I'll answer this first, since it is straightforward.
When you transfer your unwanted emails from the Gmail inbox to the newly created data file, you should MOVE them, not copy them. Then they are gone from the Gmail inbox.

As far as your problem now, I am just throwing out an idea that may not be fully baked yet.
Suppose you were to take the 100,000 emails in the data file, make a COPY of them all, move those copies back into the Gmail Inbox. Then you would have duplicates of all the unwanted emails in the Gmail Inbox. Then use a Duplicate File Finder, either an Outlook plug in or in the Gmail web interface, and remove both copies of each of the duplicate emails. (It's just a way to artificially "tag" the emails you want to get rid of. The tag is they are duplicates)
But if you are at your gmail account size limit, this would not work. You might have to chunk it down, do a few hundred at a time. In any case, i would try this on just a few emails first to see if it even works.
 
Last edited:

James Snell

Member
Outlook version
Outlook 2016 32 bit
Email Account
IMAP
Thanks, Vincenzo. Re: "When you transfer your unwanted emails from the Gmail inbox to the newly created data file, you should MOVE them, not copy them. Then they are gone from the Gmail inbox." I did indeed move (not copy) them, and as you said, they're gone from the Gmail inbox. But they're still in the All Mail list, mixed in with those I want to keep. The problem is finding a way to somehow separate or mark the unwanted ones in order to delete only them.

I tried several experiments like what you suggested, which resulted in duplicates of the unwanted emails in All Mail. If there's a Duplicate File Finder in the Gmail web interface, that would be a solution, but I haven't found this. Can you tell me where to find it?
 

Vincenzo

Senior Member
Outlook version
Outlook 2016 32 bit
Email Account
IMAP
I don't have an All Mail list in my Outlook 2016. Is that something you configured?
 

James Snell

Member
Outlook version
Outlook 2016 32 bit
Email Account
IMAP
Because in Outlook I MOVED them from the inbox to the external folder, just as you suggested, so they're no longer in the inbox!

The purpose of the All Mail list in Gmail is to let the user see exactly that - all the emails that are on the server, regardless of category, and are counted in calculating the total space used.
 

Vincenzo

Senior Member
Outlook version
Outlook 2016 32 bit
Email Account
IMAP
I think I am catching on now. So your goal is to get them out of All Mail, so they no longer count toward your total space used?
 

Vincenzo

Senior Member
Outlook version
Outlook 2016 32 bit
Email Account
IMAP
I have a Gmail account but I rarely use it, so this concept of All Mail is new to me.
I am playing with it now, and it's behavior is somewhat unexpected.
I think am reading through and trying to understand this page, which I think may hold a clue to your problem.
 

Vincenzo

Senior Member
Outlook version
Outlook 2016 32 bit
Email Account
IMAP
I suspect those 100,000 messages are sitting somewhere unexpected, and I thought they might be in Trash. But my tests show that Trash items are not shown in All Mail.
Have you tried looking in all the Labels that are listed on the left side of Gmail?
Also take a look in Manage Labels, to see if there is a label that is "hidden" that may be holding those emails.
 

Vincenzo

Senior Member
Outlook version
Outlook 2016 32 bit
Email Account
IMAP

James Snell

Member
Outlook version
Outlook 2016 32 bit
Email Account
IMAP

James Snell

Member
Outlook version
Outlook 2016 32 bit
Email Account
IMAP
If you have a Gmail account and use Outlook with IMAP, here is how to keep your wanted emails on your computer but delete them from the Gmail server.

First, in Outlook, create whatever external folders you want, with appropriate names, for keeping the wanted emails. Then move (rather than copy) the wanted emails from your Outlook Inbox and/or Sent Mail folders to the external folders. Also, if the Outlook folder pane lists any folders under your Gmail account (these are not external folders), move any wanted emails from them to external folders. Emails in Outlook's external folders are safe from deletion in Gmail (even though Gmail lists them in its All Mail list); however, deletion in Gmail DOES delete emails in folders listed under your Gmail account in Outlook's folder pane.

Now repeat the following steps as many times as needed: [Comments in square brackets concern usability design defects in Gmail.]

1. On the Gmail website, scroll to the bottom of the mail list and note amount of server space used. [Scrolling should not be needed to view this important info.]
2. Scroll down the left navigation pane, click "More", scroll down again, and click "All Mail". [This scrolling should not be needed.]
3. With All Mail displayed, enter the following string in the search box: "-in:inbox -in:sent" (without the quotes). [Incredibly, no title is displayed above the list, "All Mail" in this case. And a reference list of the search operators should be easy to find near the search bar, but isn't.]
4. Click the Search icon (magnifier) or press the Enter key. [The last number of "1-100 of..." may be wrong; this is a coding bug, not a UI design bug.]
5. Click the Select icon (checkbox), or click the down-arrow next to the icon, and in the dropdown click "All". [The Select icon should have a tooltip.]
6. Click the link "Select all messages that match this search" ["All" in the dropdown is ambiguous, and this link resolves the ambiguity. The dropdown should have both options: "All search matches" and "Only the matches listed on this page".]
7. Click the Delete button and click "OK" in the "Confirm Bulk Action" dialog box.
8. Wait for the yellow box with "Loading..." at the top to disappear, and the black box with "All conversations moved to Trash" to appear briefly at the bottom. [There's a limit of 15,000 emails, which can unpredictably increase to 20,000 or 35,000. The limit forces the user to do this process repeatedly if there are more. The UI should provide a way for the user to specify the limit, or no limit.]
9. In the left nav, click "Trash". (Now the "1-100 of..." label will be accurate.)
10. If no messages are displayed, click "Refresh" at the top. [This should not ever be necessary.]
11. Click "Empty Trash now" and click "OK" in the "Confirm Deleting Messages" dialog.
12. Wait for the "Deleting Messages" dialog box to close.
13. Click the browser's (not Gmail's) Refresh icon, scroll to the bottom of the mail list, and note the amount of server space used. [This info should update automatically.]

Notice the absurdity of this process. And I could write a lengthy article on the myriad user interface design defects I've encountered in Gmail.
 

saurabhjha

New Member
Outlook version
Outlook on the web
Email Account
Exchange Server
Hey,
If you want to delete your Gmail account, then backing up all the emails with attachments is necessary or you can import all Gmail emails to Outlook. This can be done by using a third-party tool which directly imports or back up all Gmail Emails. There are many tool available in market, you can choose any of them which will be suitable to you.
 
Similar threads
Thread starter Title Forum Replies Date
C Your mailbox has been temporarily moved ... Using Outlook 2
P Outlook 2013 "Item could not be moved - still an issue for Outlook 2013 Using Outlook 0
S Messages moved / deleted by auto-archive are not synchronized to exchange Exchange Server Administration 8
CWM030 Connected accounts mail moved to trash? Exchange Server Administration 16
N Tracking Mail items being moved to folders Outlook VBA and Custom Forms 5
DAVID A moved the Outlook CST file - All subfolders lost Using Outlook 2
D Is it possible to automatically send an email when it is moved to a folder? Exchange Server Administration 1
Aussie I Change the Subject Line ... but after it is moved the subject has reverted Using Outlook 1
W Shared inbox sub folders not visible when moved Using Outlook 3
D How to forward each email x minutes after it arrives in inbox and hasn't been moved or deleted? Using Outlook 1
D iTunes moved Outlook.com Calendar to Delted Items Using Outlook.com accounts in Outlook 3
S Can't move the items. The item could not be moved. It was either already moved or deleted, or access Using Outlook 3
Stig Arvidsson Need a Script for handling moved mail from inbox Using Outlook 3
Commodore Unified inbox shows moved messages for a while Using Outlook 4
W "You Replied on" Gets Stripped from Emails after they are Moved to Folder Using Outlook 1
S Error 0x80040600 + Cannot move the items. The item cannot be moved . . . Using Outlook 9
Z Mark moved copies as "Read" Using Outlook 19
D Outlook Archiving sent emails which have been moved to inbox folders Using Outlook 1
M Forwarding vCard prompts Send As (From field) on Contacts that were moved Using Outlook 6
M Recover moved mail to task folder Using Outlook 1
S Exchange 2010 - "drafts" folder has been moved to calendar. Exchange Server Administration 1
S OAB generation fails on Ex 2010 after moved from 03 Exchange Server Administration 1
S Exchange 2010 CAS/HT/Mailbox moved - best practice/steps for decommissioning 2007 Exchange Server Administration 3
T Outlook 2010 / SBS 2010 - User cannot view emails moved to a folder that was previously imported fro Using Outlook 6
J OWA not working when active database moved Exchange Server Administration 3
S Recovering Tasks moved to Mail folders Using Outlook 3
S Transition from 2003 to 2010 - phase of coexistence - NDR if send a mail from moved to non moved Exchange Server Administration 8
V Your Mailbox Has Been Temporarily Moved On Microsoft Exchange Server____ Using Outlook 1
V Your Mailbox Has Been Temporarily Moved On Microsoft Exchange Server__ Using Outlook 7
C Mailbox moved 2003 to 2010sp1 but move request screen shows errors Exchange Server Administration 3
W Calendar shows that no appointments, meetings or reminders were found that need to be moved to the new time zone but there are tons of calendar items Using Outlook 4
J Appointment times automatically moved 2 hours when I changed time zones...how do I stop this? Using Outlook 1
J OUtlook 2010 - Email disappearing after they are moved to folders. Using Outlook 1
B the linked image cannot be displayed. the file may have been moved renamed or deleted. message Using Outlook 15
Forum Admin Can the conector's data file be moved? Using Outlook.com accounts in Outlook 3
J Parent of moved mailItem Outlook VBA and Custom Forms 5
B Task Filter Not Working When I add too many criteria Using Outlook 0
T Many problems with outlook.com - will upgrade to Outlook soon Using Outlook 1
D Too many scripts? Outlook VBA and Custom Forms 1
GregS Outlook 2016 Too Many Archives Using Outlook 0
GregS Many Sent Item folders Using Outlook 3
P how to remove unwanted PST file default categories assigned to many calendar entries Using Outlook 7
L Why do i get so many drafts? Using Outlook 12
T Received many email without information Using Outlook 1
M How many days are items in Recover Deleted at Outlook.com ? Using Outlook.com accounts in Outlook 4
O Copy mails from many subfolders to 1 foldr Using Outlook 2
C too many choices for time zones! can i reduce to actual time zones only? Using Outlook 1
M warning for too many appointments on a same day in Outlook Using Outlook 1
M Charter ISP Claims Outlook Generating STMP Errors of Too Many Recipients Using Outlook 1
D Meeting Request - Too Many Recipients Using Outlook 0

Similar threads

Top