When Mac Mail won't delete emails, or deleted messages come back, Mail usually can't pass the deletion on to your mail server. The account is offline, the Trash Mailbox setting points to the wrong folder, or Mail's local copy of the mailbox is out of sync with the server. Check the account connection and the Trash Mailbox setting first, then erase deleted items and rebuild the mailbox.
Gmail works differently: Google says messages you delete from a folder in an email app can still be found in Gmail's All Mail. That's covered in fix 6.
For other Mail problems on Mac, see our complete guide to Apple Mail.
How deleting works in Mac Mail
When you press the Delete key or click the trash button in the toolbar, Mail moves the message to the account's Trash mailbox. It isn't gone yet. Apple's guide to deleting emails and managing storage in Mail explains that deleted messages stay available until they're permanently erased, which happens when you choose Mailbox › Erase Deleted Items or when the "Erase deleted messages" setting kicks in (Never, after one day, one week or one month, or when quitting Mail).
For IMAP and Exchange accounts, the messages live on the mail server, so Mail has to make the same change there. When that fails, what you see in Mail stops matching the server, and deleted messages can stay put or show up again.

How to fix Mac Mail not deleting emails
Work through these in order. The first three are the quickest.
1. Check that the account is online
Mail can't delete anything on the server while the account is offline. Click the warning or lightning-bolt icon next to the account's inbox, if there is one, to see its status (Apple covers this in If you can't send or receive email on Mac). You can also choose Window › Connection Doctor to check each account. If an account fails to sign in, fix that first; our guide to Mac Mail not connecting to the server covers the common causes.
If Mail shows "Mail was unable to remove the deleted messages in the mailbox … on server …", Mail couldn't remove the messages on the server. Sign in to the account's webmail and try deleting the same message there. If that fails too, the problem is with the provider, not Mail.
2. Quit and reopen Mail
Quit Mail (if it doesn't respond, choose Apple menu › Force Quit), then open it again so it reconnects to your accounts. If Mail won't launch afterwards, see why Mail won't open on your Mac.
3. Check the Trash Mailbox setting
For IMAP accounts, this setting tells Mail where deleted messages go: a mailbox on the server, a mailbox on your Mac, or None. Pointing it at the account's own Trash on the server keeps Mail, webmail and your other devices showing the same Trash.
- Choose Mail › Settings, then click Accounts.
- Select the account, then click Mailbox Behaviors.
- Next to Trash Mailbox, choose the Trash folder on the server for that account, not one under On My Mac.
- Under Erase deleted messages, choose when Mail should empty the Trash for good.
Apple's page on Mailbox Behaviors settings explains each option. If you choose None for Trash Mailbox, deleted messages aren't kept in a Trash mailbox at all, and Apple notes that a provider that deletes older messages on the server does so whatever you set here.
4. Erase deleted items
Choose Mailbox › Erase Deleted Items, then pick the account, or Control-click the account's Trash mailbox and choose Erase Deleted Items. Mail warns that "Erasing deleted items such as messages and mailboxes permanently deletes them. This action cannot be undone," so check the Trash for anything you still need first.
5. Rebuild the affected mailbox
If deleted messages keep reappearing, Mail's local list of messages is probably out of sync with the server. Select the mailbox in the sidebar and choose Mailbox › Rebuild. For IMAP and Exchange accounts, Mail downloads the list of messages again, so a large mailbox can take a while. The same step helps when Mac Mail is not updating the inbox.
6. Gmail: deleted messages stay in All Mail
Gmail uses labels, and Mail shows each label as a folder. Google's help page on IMAP email client settings for Gmail says that messages you delete from an IMAP folder can be found in your All Mail label. So deleting from the Inbox in Mail can leave the message in Gmail, just archived.
Gmail's own IMAP settings decide what happens to a message deleted in another app: archive it, move it to the Trash, or delete it forever. In Gmail on the web they're under Settings › See all settings › Forwarding and POP/IMAP. Google warns that if you send deleted messages to the Trash, they're permanently deleted from Gmail after 30 days. In Mail, also check that the Gmail account's Trash Mailbox (fix 3) is Gmail's own Trash folder. Our guide to finding and managing archived Gmail emails explains All Mail in more detail.
7. Rebuild Mail's Envelope Index
If nothing above works, Mail's own database of your messages (the Envelope Index) may be damaged. Mail sometimes detects this itself and offers a Quit and Rebuild Index button. Apple's articles stop at rebuilding the mailbox, so these manual steps come from long-standing Mail troubleshooting rather than an Apple page. To do it by hand:
- Quit Mail. If you keep mail in On My Mac mailboxes, make a Time Machine backup first.
- In Finder, hold Option and choose Go › Library.
- Open Mail, then the folder named V plus the highest number (V10 on macOS Ventura 13 through macOS 27), then MailData.
- Move the files whose names start with "Envelope Index" (Envelope Index, Envelope Index-shm and Envelope Index-wal) to the Trash.
- Open Mail. It imports your messages again and builds a new index.
Your messages aren't stored in these files. IMAP and Exchange messages are downloaded again, so this can take a long time on large accounts.
8. Remove the account and add it back
Apple's last-resort step for account problems is to remove the account from Mail and add it back. Mail's own warning applies: "The account's setup information, mailboxes, and all messages will be deleted permanently from your computer. Copies of messages on the mail server, if they exist, will not be affected." Back up anything stored only on your Mac before you do this.
Can you lock an email in Apple Mail so it can't be deleted?
No. Mail › Settings on a Mac has no option to lock or protect a message from deletion, and no "Ask before deleting" option like the one on iPhone. These are the closest options:
- Keep a safety net in the Trash. In Mailbox Behaviors, keep a Trash Mailbox selected and set "Erase deleted messages" to Never. If you delete something by mistake, drag it out of the Trash into another mailbox, or press Command-Z straight away to undo.
- Move important messages to their own mailbox. A mailbox under On My Mac is stored only on your Mac, so deleting the message on another device or in webmail doesn't remove that copy.
- Save a copy as a file. Choose File › Save As, or File › Export as PDF. You can also drag a message to the desktop to save it as an .eml file.
- On iPhone and iPad, turn on Ask Before Deleting in Settings › Apps › Mail, so Mail asks for confirmation before it deletes.
Video walkthrough
A third-party video on fixing an unresponsive Mail app on macOS:
If you'd rather use another app
If deletions keep breaking across several accounts, another email app may suit you better. Our list of the best email clients for Mac compares the options, including Canary Mail (disclosure: we make it), and our Canary Mail vs Apple Mail comparison covers the differences.

Frequently Asked Questions (FAQ)
Why does my Mac Mail keep showing deleted emails?
Usually because the deletion never reached the server: the account was offline, or Mail's copy of the mailbox is out of sync. Check the Trash Mailbox setting in Mail › Settings › Accounts › Mailbox Behaviors, then rebuild the mailbox with Mailbox › Rebuild.
Why are my deleted Gmail emails still in Gmail?
Google says messages you delete from a folder in an email app can still be found in All Mail. To change that, adjust Gmail's IMAP settings in Gmail on the web (Settings › See all settings › Forwarding and POP/IMAP). Messages sent to Gmail's Trash are deleted permanently after 30 days.
How do I empty the trash in Mac Mail?
Choose Mailbox › Erase Deleted Items and pick an account, or Control-click the Trash mailbox and choose Erase Deleted Items. To do it automatically, set "Erase deleted messages" in Mailbox Behaviors to after one day, one week, one month or when quitting Mail.
Does Mail on Mac have an "Ask before deleting" setting?
Not in Mail › Settings. The Ask Before Deleting switch is on iPhone and iPad (Settings › Apps › Mail). On a Mac, press Command-Z to undo a deletion, or drag the message back out of the Trash.
Can I make an email undeletable in Apple Mail?
Not in Mail. The safest option is to keep a copy outside the account: move the message to a mailbox under On My Mac, or save it with File › Save As or File › Export as PDF.
Will deleting the Envelope Index delete my actual emails?
No. The Envelope Index is Mail's database of your messages, not the messages themselves. When you open Mail again, it imports your messages and builds a new index; IMAP and Exchange mail is downloaded again. The same rebuild is a standard fix for Mac Mail search problems.