Mac Mail Not Deleting Emails? 8 Fixes That Work in 2026

Deleted emails keep coming back in Mac Mail? Check the Trash mailbox setting, Gmail's IMAP options, offline accounts and a stuck index.

The Merlin team11 min read

When Mac Mail won't delete emails, or deleted messages reappear, Mail and your mail server usually disagree about where deleted mail belongs. The three settings that matter most: the account's Trash Mailbox setting in Mail > Settings > Accounts > Mailbox Behaviors, whether the account is offline, and (for Gmail) what Gmail does with deleted IMAP messages. Rebuilding the mailbox fixes most of what's left.

It's a maddening one. You select fifty old newsletters, press Delete, watch them vanish, and the next time Mail syncs they're back, or they sit grayed out and refuse to move at all. When I cleared a newsletter backlog on my Mac and found a good chunk of it back in the inbox the next morning, the culprit turned out to be a single pop-up menu. This guide walks through why Apple Mail on macOS fails to delete, the fixes in the order worth trying, what's different for Gmail, iCloud and Exchange accounts, and how to keep it from happening again.

Why won't Mac Mail delete my emails?

Mac Mail doesn't delete anything on its own authority. With an IMAP account (Gmail, iCloud, Yahoo, most work mail), pressing Delete asks the server to move the message to a Trash folder. If the server never gets that request, or files the message somewhere other than where Mail expects, the message either stays put or comes back on the next sync. The usual reasons:

  • The Trash mailbox points to the wrong place. Each IMAP account has a Trash Mailbox setting, and it can point to a folder on the server, a folder On My Mac, or None, according to Apple's Mailbox Behaviors page. A local Trash means the server copy is never touched.
  • The account is offline. An offline account can't talk to the server, so deletions queue up and may not stick. Apple shows a lightning bolt icon beside an offline account in the sidebar (Apple's offline guide).
  • Gmail is set to archive deleted messages. Gmail decides for itself what a "deleted" IMAP message means: archive it, move it to Trash or delete it forever, per Google's Gmail settings reference. Archive means the message leaves the inbox but lives on in All Mail.
  • Mail's local index is out of step. Mail keeps its own list of what each mailbox holds. When that list is stale, deleted messages can show up again until the mailbox is rebuilt (Apple's mailbox guide).
  • Another device or app puts messages back. A phone, tablet or second email app on the same account can undo or override what your Mac did.

Quick diagnosis: match the symptom to the fix

The way the problem shows up usually points to its cause, so start with the row that matches what you're seeing.

What you see in Mail on Mac, and where to look first

What you see

Most likely cause

Try first

Deleted emails come back after a sync

Trash set to a local mailbox, or Gmail archiving them

Fix 2, then Fix 4

Gmail messages vanish from the inbox but sit in All Mail

Gmail's IMAP setting archives deleted mail

Fix 4

Delete does nothing at all

Account offline, or Mail frozen

Fix 1 and Fix 3

Trash fills up but never empties

Erase deleted messages set to Never

Fix 6

Only one mailbox misbehaves

Stale message list for that mailbox

Fix 5

Swipe archives instead of deleting

Viewing setting for swipes

Fix 7

Fix 1: Quit and reopen Mail

Quitting Mail can clear a stuck sync, and it is worth the ten seconds before anything else. Choose Mail > Quit Mail (Command-Q). If Mail won't quit, press Option-Command-Esc, select Mail and click Force Quit, as Apple's force-quit guide describes. Reopen Mail and give it a minute to sync before you test a delete.

If Mail freezes every time you try this, the problem is bigger than deleting. The guide to Mac Mail crashing or quitting covers that.

Fix 2: Point the Trash mailbox at the server

For IMAP accounts, the Trash Mailbox setting decides where deleted mail goes, and it should almost always be the Trash folder on the server. If it's set to a mailbox On My Mac, Mail moves the message locally and the server copy stays, so it reappears on the next sync or on your other devices.

  1. In Mail, choose Mail > Settings, then click Accounts.
  2. Select the account that won't delete.
  3. Click Mailbox Behaviors.
  4. Open the pop-up menu next to Trash Mailbox and pick the Trash folder listed under the account's server, not under On My Mac.
  5. Close Settings and delete a test message.

Choosing None here is a different thing: Apple's guide to deleting emails says deleted messages are then removed without ever being kept in a Trash mailbox, so there's nothing to recover. Apple also notes the Trash Mailbox option is only available for IMAP accounts (Mailbox Behaviors).

Check it after every new setup

Adding an account to a new Mac is where a local Trash tends to sneak in, so Mailbox Behaviors is the first pane I open after signing in.

Fix 3: Make sure the account is online

An offline account in Mail on Mac can't send deletions to the server. Look for a lightning bolt icon next to the account in the sidebar; Apple's guide says that icon means the account is offline.

  1. Click the lightning bolt icon, or choose Mailbox > Take All Accounts Online.
  2. For a single account, choose Mailbox > Online Status > Take [account] Online.
  3. Delete a test message and wait for the next sync.

If the account won't come back online, the issue is the connection, not deleting. The Mac Mail not connecting to server guide goes through passwords, server settings and Connection Doctor.

Fix 4: Change what Gmail does with deleted messages

Gmail treats a message deleted in an IMAP app like Apple Mail according to a setting on Gmail's side. Google lists three possible actions for a message marked as deleted and expunged from the last visible IMAP folder: archive it, move it to the trash, or delete it forever (Google's IMAP settings reference). When Gmail archives, your "deleted" email drops out of the inbox in Mail but stays in Gmail's All Mail, so it never really goes.

  1. Sign in to Gmail on the web, click the gear, then See all settings.
  2. Open the Forwarding and POP/IMAP tab (Google's IMAP help names this tab).
  3. Find the setting for messages marked as deleted and expunged from the last visible IMAP folder, and choose to move them to the Trash.
  4. Look at the Auto-Expunge option too. When it's on, Gmail expunges a message as soon as a client marks it deleted (Google's reference).
  5. Save, then go back to Mail on your Mac and delete a test message.

Moving to the Trash is the safer choice over deleting forever. Gmail's help says messages in Trash are permanently deleted after 30 days, which gives you a month to change your mind. Google's reference is blunt that "delete forever" messages cannot be recovered.

Whenever I add Gmail to Mail on a Mac now, this tab gets changed before I delete a single message, since every delete made before the change has already gone to All Mail. If you mostly want to clear out Gmail in bulk, it's often faster in Gmail itself; see how to mass delete emails in Gmail. And if you're not sure whether something was deleted or archived, where archive lives in Gmail explains All Mail.

Fix 5: Rebuild the mailbox

Rebuilding a mailbox makes Mail on Mac refresh its list of the messages that mailbox holds, which can clear out deleted emails that only linger in a stale local copy. Apple's steps are short:

  1. Select the misbehaving mailbox in the Mail sidebar (start with the inbox).
  2. Choose Mailbox > Rebuild.
  3. Wait for the mailbox to fill again. A big mailbox can take a while.

Rebuild one mailbox at a time, and do the Trash mailbox too if deleted mail seems to be hiding there.

Fix 6: Erase deleted messages and set a schedule

Deleting in Mail on Mac moves messages to Trash; erasing removes them for good. If your Trash keeps growing, nothing is broken: the Erase deleted messages option is probably set to Never. Apple's guide to deleting emails gives two ways to erase now:

  • Choose Mailbox > Erase Deleted Items, then pick an account or all accounts.
  • Or Control-click a Trash mailbox in the sidebar and choose Erase Deleted Items.

To make it automatic, go to Mail > Settings > Accounts, select the account, click Mailbox Behaviors and choose a schedule under Erase deleted messages (Apple's Mailbox Behaviors). Apple points out that messages in Trash still count against your provider's storage until they're erased (Apple's guide), so a schedule matters if your mailbox is near its limit. A week is a sensible middle ground for most people: long enough to catch a mistake, short enough that Trash doesn't eat your storage.

Erased means gone

Once you erase deleted items, Mail can't bring them back. Restoring from a Time Machine backup is the only route Apple mentions for content Mail downloaded (Apple's mailbox guide).

Fix 7: Check where a swipe sends messages

Sometimes Mail is deleting exactly as told, and the instruction is "archive." In Mail on Mac, the Move discarded messages into setting in Mail > Settings > Viewing decides whether a two-finger swipe left on a message sends it to Trash or to Archive. Apple's Viewing settings page adds that the same option controls whether you can delete or archive from Mail notifications.

If a swiped message lands in Archive, set the option to Trash. It's also worth a look at the toolbar: clicking Archive when you meant Delete gives the same "it didn't delete" feeling. The swipe actions guide and the archive guide cover both in more detail.

Fix 8: Rebuild Mail's index (last resort)

If deleted emails still come back after a mailbox rebuild, Mail's main index file may be damaged. Apple doesn't document this fix, so treat it as the step after everything else. The developer of the SpamSieve Mail plug-in publishes instructions for rebuilding Mail's index; on macOS 13 through macOS 27 the file sits in the V10 folder.

  1. Back up your Mac with Time Machine first.
  2. Quit Mail.
  3. In Finder, choose Go > Go to Folder, type ~/Library/Mail/V10/MailData and press Return.
  4. Move the file named Envelope Index to the Trash, along with Envelope Index-shm and Envelope Index-wal if they're there.
  5. Open Mail and let it rebuild. Server-based messages are downloaded afresh, which can take some time.

The same instructions note that Mail keeps your actual messages elsewhere, which is why this is normally safe. Don't touch anything else in that folder.

How deleting works for iCloud, Gmail, Exchange and POP accounts

Each kind of account handles a delete from Mail on Mac a little differently, which explains a lot of the "it came back" reports.

What happens to a deleted email, by account type

Account

What Delete does

Worth knowing

iCloud Mail

Moves the message to iCloud's Trash

Trash keeps it 30 days, though another app's settings can erase it sooner (Apple's iCloud guide)

Gmail

Whatever Gmail's IMAP setting says: archive, Trash or delete forever

Gmail's own Trash empties after 30 days (Gmail help)

Other IMAP (Yahoo, Fastmail, work mail)

Moves it to the Trash mailbox you pick in Mailbox Behaviors

Trash Mailbox can be server, On My Mac or None (Apple)

Exchange or Microsoft 365

Handled by the Exchange server

Apple says the Trash Mailbox option is IMAP-only, so there's no pop-up to change (Apple)

POP

Removes it from your Mac; the server copy follows its own rules

Set how long server copies stay in Mail > Settings > Accounts > Advanced (Apple)

One more iCloud detail: when you delete an email on iCloud.com, Apple says it's deleted on every device that has Mail turned on for iCloud (Apple's iCloud guide). If deletes from your Mac don't stick but deletes on iCloud.com do, the fault is on the Mac side, so go back to Fix 2 and Fix 5.

How to get a deleted email back in Mac Mail

A message deleted in Mail on Mac sits in the account's Trash mailbox until it's erased. Apple's guide gives two ways to recover it:

  1. Click Trash under the account in Mail's sidebar, then drag the email back into the inbox or any folder.
  2. Or select it in Trash and choose Message > Move to, then pick a mailbox.

With Gmail, look in All Mail and Trash on the web as well, since a message you deleted in Mail may have been archived instead. Once Trash has been erased, Mail can't recover the message.

How to stop deleted emails coming back

Once the fix works, a few habits keep deleted mail from drifting back:

  • Point every IMAP account's Trash Mailbox at the server, on each Mac where you use Mail.
  • For Gmail, set deleted IMAP messages to go to the Trash rather than archive.
  • Pick an Erase deleted messages schedule so Trash doesn't grow forever.
  • Keep one app in charge of cleanup. Two email apps on the same account, each with its own idea of "delete," is how mail ends up in odd places.
  • Keep macOS updated, since Mail updates arrive with it. If Mail stops syncing altogether, the Apple Mail not updating guide is the next stop.

Clean up Gmail from your Mac, without the IMAP guesswork

Merlin is a chat assistant on your Mac that talks to Gmail directly, so a cleanup doesn't depend on how Gmail reads IMAP deletes. Type "clear out last month's shipping notices" into Merlin's chat and it comes back with a Move to Trash card for you to approve. Merlin can't delete mail permanently: everything goes to Gmail's Trash, where you have 30 days to restore it.

Get Merlin

Frequently asked questions

Why do my deleted emails keep coming back on my Mac?

Usually because the server never deleted them. Check that the account's Trash Mailbox in Mail > Settings > Accounts > Mailbox Behaviors points to the server's Trash, and for Gmail, that deleted IMAP messages go to Trash rather than being archived.

How do I permanently delete emails in Apple Mail on Mac?

Choose Mailbox > Erase Deleted Items and pick an account, or Control-click the Trash mailbox and choose Erase Deleted Items. Erased messages can't be recovered from Mail.

Why does Mac Mail move deleted Gmail messages to All Mail?

Gmail's IMAP setting can archive messages that an email app deletes. Change it in Gmail's Forwarding and POP/IMAP settings to move deleted messages to the Trash instead.

How do I empty the Trash automatically in Mac Mail?

Go to Mail > Settings > Accounts, select the account, click Mailbox Behaviors and choose a time under Erase deleted messages. Mail then erases Trash on that schedule.

Does rebuilding a mailbox in Mac Mail delete my emails?

Apple describes Mailbox > Rebuild as a way to update the list of messages a mailbox contains. A Time Machine backup first is still sensible for mail stored only On My Mac.

Can I recover emails after erasing the Trash in Mac Mail?

Not from Mail itself. Apple points to Time Machine backups as the way to restore content Mail downloaded.

you scrolled all the way down here

your next free moment starts in three minutes

getting started takes three minutes. sign in, and i'm on your to-dos, starting with who's waiting on you

you decide what comes after

Download for Mac Free forever. No credit card.