Deleted in Outlook but not from Gmail

I’ve got my Gmail account configured as an IMAP account in Outlook. I noticed that when I delete a message from my mailbox in Outlook, I can still find it online in Gmail’s All Mail folder.

Is there a way to set it up so that when I delete it from Outlook, it is also deleted from Gmail?

Gmail buttonAs Gmail was set up with the thought of “never need to delete an email again”, the default configuration of Gmail is to archive your messages rather than deleting it.

In Gmail, archiving means that all labels (what you experience as folders) are removed from an item so that it only shows in your All Mail folder.

You can change this behavior within Gmail’s IMAP options and by making sure that Outlook’s purge settings are set correctly.

Gmail – IMAP Expunge and deletion options

Gmail Settings buttonDeleting messages from an IMAP account actually works a bit different than from other account types.

Long technical story short; Instead of moving it to a Deleted Items folder, it only gets “marked as deleted” but will still exist in the original folder. To actually delete an item, you’ll need to “Expunge” the item which is called “Purge” in Outlook.

However, when purging your deleted items in Outlook, Gmail’s default behavior is to archive it to the “All Mail” folder. This behavior can be changed in Gmail itself.

  1. In Gmail on the web, open your Settings dialog and select Forwarding and POP/IMAP or use this direct link.
  2. In the IMAP Access section, select the following options:
    • When I mark a message in IMAP as deleted:
      Auto-Expunge off - Wait for the client to update the server.
    • When a message is marked as deleted and expunged from the last visible IMAP folder:
      Move the message to the Trash
  3. At the bottom press the button Save Changes

Setting Gmail's deleting behavior for IMAP accounts.
Setting Gmail's deleting behavior for IMAP accounts. 

Outlook – Purge items when switching folders

Outlook buttonIn Outlook, there is no option to select the Deleted Items (Trash) folder for your Gmail IMAP account as Outlook takes great care to autodetect that.

To process the items that you delete and actually delete them, you need to enable the option to purge the items when switching folders.

  1. File-> Account Settings-> Account Settings…
  2. Double click on your Gmail account to open its settings dialog.
  3. When using Outlook 2013 or Outlook 2016 (MSI);
    1. Press on the button More Settings…
    2. Select the Advanced tab.
  4. Enable the option: Purge items when switching folders while online
  5. Use Next/Done or OK/Next/Finish to apply the changes and return back to the main Outlook window.

Set the option to automatically purge items for your IMAP Gmail account in Outlook 365, 2021, 2019, or 2016 (Retail).
Set the option to automatically purge items for your IMAP Gmail account in Outlook 365, 2021, 2019, or 2016 (Retail).

Set the option to automatically purge items for your IMAP Gmail account in Outlook 2013, or 2016 (MSI – Volume License).
Set the option to automatically purge items for your IMAP Gmail account in Outlook 2013, or 2016 (MSI – Volume License).

Outlook 2010 – Deleted Items folder for IMAP

Outlook 2010 buttonIn Outlook 2010, you can assign a folder as the Deleted Items folder for an IMAP account. If you set this to the Trash folder of your Gmail mailbox, then your deleted mail in Outlook will be also get deleted on Gmail.

  1. File-> Account Settings-> Account Settings…
  2. Double click on on your Gmail account to open its settings dialog.
  3. Press on the button More Settings…
  4. Select the Deleted Items tab.
  5. Select the option: Move deleted items to the following folder on the server
  6. Select the Trash folder from the [Gmail] root.
  7. Enable the option: Purge items when switching folders while online
  8. Press OK to apply the changes.
  9. Press Next to verify your changed account settings.
  10. Close the test dialog, press Finish and then Close to return back to the main Outlook window.

In Outlook 2010, you can set the Trash folder as the Deleted Items folder for a Gmail IMAP account.
In Outlook 2010, you can set the Trash folder as the Deleted Items
folder for a Gmail IMAP account.

Move to Trash folder manually

Trash buttonSometimes, the above method will not work and purged deleted items will still show up in the All Mail folder rather than Gmail moving it to the Trash folder.

In those rare cases, you can also choose to move the messages manually to the Trash folder in Outlook instead of deleting them via pressing Delete.

Adding the Trash folder to your Favorite Folders section might simplify this for you as then you won’t have to search for the folder each time.