Blog/ Gmail how-tos

Why Deleting in an Email Client Only Archives in Gmail

Nafiul HasanNafiul Hasan· 12 min read
Diagram showing Gmail IMAP delete behavior: a message deleted in Apple Mail landing in Gmail All Mail instead of Trash, with arrows illustrating the label-removal path versus the Trash path

The short answer

Gmail's IMAP expunge setting controls what happens when a third-party client deletes a message. The default — archive, not trash — is why deleted mail still appears in All Mail. Change the setting in Gmail Settings under Forwarding and POP/IMAP to move deleted messages to Trash instead.

Why deleting email in Apple Mail or Outlook only archives it in Gmail, and how to change the IMAP expunge setting to move it to Trash instead.

On this page
  1. 01The short answer
  2. 02Before you start: how Gmail's IMAP differs from standard IMAP
  3. 03How to change Gmail's IMAP expunge setting to move deleted mail to Trash
  4. 04How different clients handle Gmail IMAP delete by default
  5. 05What to do when it still doesn't work
  6. 06A faster way: an email client that maps Gmail correctly by default

You hit Delete in Apple Mail or Outlook, the message vanishes from your inbox, and then you search in Gmail on the web and find it sitting in All Mail — untouched, not deleted. This is not a sync glitch. It is Gmail working exactly as configured: the default behavior when an IMAP client deletes a message is to archive it, not trash it.

The confusion is real and the stakes are not trivial. People assume mail is gone when it is not, or discover that a delete command they ran weeks ago did nothing at the Gmail level. The fix is a single Gmail setting, but finding it requires understanding how Gmail's IMAP layer differs from every other mail server your client has ever connected to.

The short answer#

Gmail has a setting that controls what happens to a message when your email client marks it as deleted and issues an expunge. The setting is in Gmail's web interface under Settings, Forwarding and POP/IMAP, in the IMAP Access section. The three options are: archive the message (the Gmail default), move it to Trash, or immediately delete it forever.

Changing from the default archive option to Move the message to the Trash means IMAP deletes from any connected client — Apple Mail, Outlook, Thunderbird, or any other — will land in Gmail's Trash folder rather than staying in All Mail. Messages in Gmail's Trash are removed permanently after 30 days, giving you a recovery window if you need it.

There is a second factor: how your email client maps its own Trash or Deleted Items folder to Gmail's IMAP folder list. If the client's Trash folder is mapped to the Gmail folder named [Gmail]/Trash, the two mechanisms work together. If the client uses its own local Deleted Items folder that does not map to [Gmail]/Trash, some deletions can still end up in unexpected places regardless of the Gmail setting.

Before you start: how Gmail's IMAP differs from standard IMAP#

Standard IMAP treats folders as containers. A message lives in exactly one folder, and deleting it removes it from that folder. Gmail does not work this way. Gmail stores one canonical copy of each message and uses labels to control which IMAP folders the message appears in. The folder [Gmail]/All Mail contains every message in the account — including ones you have removed from your inbox. Nothing leaves All Mail until it is explicitly moved to Trash or deleted outright.

When a standard IMAP client marks a message as deleted in the Inbox folder and issues an expunge, it expects the message to be removed from storage. Gmail instead interprets this as: remove the Inbox label from this message. The message stays in All Mail because All Mail is not a label — it is the underlying store. This label-removal behavior is the archive path, and it is what Gmail does by default.

  • All Mail is the single source of truth. Removing the Inbox label archives the message; it does not delete it.
  • [Gmail]/Trash and [Gmail]/Spam are the only special folders that schedule a message for permanent deletion after 30 days.
  • Auto-Expunge is a separate Gmail IMAP setting. It controls how quickly Gmail acts on a deletion flag — immediately when the client sends the command (on, the default), or only when the client explicitly issues an EXPUNGE (off). Auto-Expunge does not control the destination; the expunge destination setting does.
  • Gmail exposes its labels as IMAP folders, which is why you see folder names like [Gmail]/Sent Mail and [Gmail]/Starred in clients. Each is a label view, not an independent store.
  • A third-party client that does not recognize Gmail's IMAP folder naming may create its own Trash folder outside the [Gmail]/ namespace, which is why mapping verification matters.

How to change Gmail's IMAP expunge setting to move deleted mail to Trash#

The change is made once in the Gmail web interface and applies to all IMAP clients connected to that account. You do not need to change anything in each client to update this behavior, though you may still need to verify the Trash folder mapping in each client separately.

  1. 1

    Open Gmail Settings in a browser

    Go to mail.google.com. Click the gear icon at the top right, then choose See all settings. This opens the full settings panel — not the quick-settings sidebar.

  2. 2

    Navigate to Forwarding and POP/IMAP

    Click the Forwarding and POP/IMAP tab. Scroll down to the IMAP Access section. Confirm the IMAP Access radio button is set to Enable IMAP — if IMAP is disabled, no third-party client can connect at all.

  3. 3

    Find the expunge destination setting

    Under IMAP Access, look for the setting labeled: When a message is marked as deleted and expunged from the last visible IMAP folder. It has three options. The default is Archive the message (remove the Inbox label, keep in All Mail).

  4. 4

    Select Move the message to the Trash

    Choose Move the message to the Trash. This routes expunged messages to [Gmail]/Trash, where Gmail permanently deletes them after 30 days. Avoid the third option — Immediately delete the message forever — unless you are certain you never need a recovery window.

  5. 5

    Save changes

    Scroll to the bottom and click Save Changes. The new behavior takes effect for all connected IMAP clients immediately. You do not need to reconnect or re-authorize the clients.

  6. 6

    Verify the Trash folder mapping in each client

    In Apple Mail, go to Mail, Settings, Accounts, select your Gmail account, then Mailbox Behaviors, and confirm the Trash folder is mapped to [Gmail]/Trash. In Outlook for Mac or Windows, right-click the trash folder under your Gmail account and check the IMAP path in its properties. In Thunderbird, go to Account Settings, Server Settings, Advanced, and confirm the Trash folder name is [Gmail]/Trash. If the mapping points elsewhere, update it to [Gmail]/Trash.

Immediately delete forever has no recovery window

The third expunge option — Immediately delete the message forever — bypasses Gmail's Trash entirely. A message expunged under this setting cannot be recovered from any Gmail interface. Start with Move the message to the Trash; the 30-day window has prevented accidental permanent loss many times.

How different clients handle Gmail IMAP delete by default#

Each email client maps its Trash folder to Gmail's IMAP folder list in its own way. Some auto-detect [Gmail]/Trash; others create a local Deleted Items folder. The table below shows the defaults as of mid-2026 — verify against your specific version, as client behavior can change in updates.

Illustration of two toggle paths: left path shows IMAP delete going to Archive (All Mail) under the default Gmail setting; right path shows delete going to Trash after changing the expunge destination setting
The Gmail expunge destination setting is the control that routes IMAP deletions to Trash rather than All Mail.
ClientDefault Trash mappingDefault delete behavior with GmailWhere to change the mapping
Apple Mail (macOS)Auto-detects [Gmail]/Trash on most setupsDelete usually moves to Gmail Trash correctlyMail > Settings > Accounts > Mailbox Behaviors
Outlook for MacMay map to a local Deleted Items folderDelete can archive or land in wrong folder depending on expunge settingOutlook Preferences > Accounts > Advanced > Folders
Outlook for WindowsMay use Deleted Items separate from [Gmail]/TrashDelete behavior depends on expunge setting; mapping issues commonAccount Settings > More Settings > Deleted Items
ThunderbirdConfigurable; not always [Gmail]/Trash by defaultVaries; can be corrected in Account SettingsAccount Settings > Server Settings > Advanced
iOS / iPadOS MailMaps to [Gmail]/Trash on most setupsDelete moves to Trash correctly in most casesSettings > Mail > Accounts > Gmail > Advanced
Android Gmail appNative Gmail; bypasses IMAP entirelyDelete moves to Trash natively, then permanent after 30 daysNot applicable — native app, no IMAP folder mapping
SparkMaps Trash to [Gmail]/TrashDelete moves to Gmail Trash as expectedSpark settings > Gmail account > Folders

What to do when it still doesn't work#

After changing the expunge setting and verifying the client's Trash mapping, most cases resolve. The table below covers the situations that persist.

SymptomLikely causeFix
Deleted messages still appear in All Mail after the setting changeThe client is not issuing an EXPUNGE after marking messages deleted — some clients batch expunges or only expunge when you close the folderForce an expunge in the client (in Thunderbird: File > Compact Folders; in Apple Mail: close and reopen the mailbox). If the client has an expunge or compact option, run it.
Delete moves the message to a folder that is not [Gmail]/TrashThe client's Trash maps to a custom IMAP folder outside the [Gmail]/ namespaceChange the client's Trash folder mapping to [Gmail]/Trash. The specific path is in the per-client steps above.
Messages disappear immediately from Gmail and cannot be found anywhereThe Gmail expunge setting is set to Immediately delete the message foreverChange the setting to Move the message to the Trash. Messages deleted while the immediate-delete option was active cannot be recovered from Gmail's interface.
IMAP access is enabled but the client cannot connectThe Gmail account uses an app password requirement (common with 2-Step Verification and clients that do not support OAuth)Generate an app password in the Google Account security settings and use it as the password in the client.
Deleting from one device moves the message but deleting from another archives itOne client has the correct Trash mapping and the other does notCheck the Trash folder mapping on the client where archive behavior persists and update it to [Gmail]/Trash.
The message moves to Trash in the client but reappears in the inbox after a syncA server-side Gmail filter or label rule is re-applying the Inbox labelCheck Gmail Settings > Filters and Blocked Addresses for any filter that matches this sender or subject and applies the Inbox label.

Auto-Expunge on is the Gmail default and usually correct

Auto-Expunge on means Gmail registers the deletion as soon as the client sends the command, without waiting for an explicit EXPUNGE. Most clients send the commands in the right order, so this setting is rarely the cause of archive-instead-of-delete behavior. The expunge destination setting — Archive versus Trash — is almost always where the fix lives.

A faster way: an email client that maps Gmail correctly by default#

The steps above are a one-time fix per Gmail account per client. Every time you add a new email client, you repeat the Trash-mapping check, and if a client update resets its folder preferences, the behavior silently reverts. The expunge destination setting in Gmail at least travels with the account, but the client-side mapping does not.

AI Emaily connects to Gmail, Outlook, and IMAP accounts and handles the archive-versus-delete distinction as a first-class concept rather than a folder-mapping exercise. Archive and delete are separate actions in the interface, each routed to the correct Gmail endpoint, so the expunge destination setting does not need to compensate for a missed mapping. The snooze and archive controls work across sessions without per-client configuration, and every action the agent takes is recorded in an audit log. We build AI Emaily. It comes with a 7-day free trial on the Pro and Autopilot plans — details at aiemaily.com/pricing.

Frequently asked

Nafiul Hasan

Written by

Nafiul Hasan

Nafiul Hasan is an entrepreneur and AI automation system builder with 10+ years of experience turning messy, manual workflows into reliable automated systems. He designs and ships AI enterprise solutions end-to-end — the agent logic, the data plumbing, and the product people actually use — and founded AI Emaily to give busy professionals their attention back. He writes here from the builder's seat: what works, what breaks, and how to put AI to work without giving up control.

EntrepreneurAI Automation System BuilderAI EnthusiastBuilds AI Enterprise Solutions10+ years experience
More from Nafiul
Ready when you are

Done configuring Gmail IMAP? Get an email client that handles it correctly.

AI Emaily connects to Gmail, Outlook, and IMAP accounts and keeps archive and delete as distinct actions — no folder-mapping setup, no expunge surprises. Approve-before-send, undo, and a full audit log on every action. Try it free for 7 days.

  • 7-day free trial
  • Cancel anytime
  • Every provider