Mailbox help

Can You Recover Permanently Deleted Emails in Gmail?

Updated 2 min read

With mailmd How to Delete a Gmail Account Without Losing Your Emails
On this page
  1. Check Trash and Spam first
  2. Try Google’s recovery tool after Trash is emptied
  3. Ask your Workspace administrator if this is a work account
  4. Check for another copy

If you deleted a message from Gmail, your best chance is to find it in Trash before Gmail removes it. Gmail keeps deleted messages there for 30 days. After that, or after you empty Trash, the message is permanently deleted from your account under Gmail’s normal rules, and recovery is not guaranteed.

Google’s Message Recovery Tool is a last resort for some messages deleted within the past 30 days, particularly when someone accessed your account without permission. For work or school accounts, a Google Workspace administrator may have a separate, limited recovery option.

Check Trash and Spam first #

A message in Trash is still recoverable during Gmail’s 30-day retention period. Open Trash and select the message. Choose Move to, then select Inbox. Gmail also deletes messages from Spam after 30 days; if a legitimate message is there, select it and choose Not spam. Google describes these folder rules in its Gmail help information.

If you cannot find the message, search Gmail for in:trash or in:spam. To check for a message that was archived rather than deleted, search in:all or use the sender’s address, subject, or a phrase from the email. Archiving removes a message from the Inbox but leaves it in your account.

Try Google’s recovery tool after Trash is emptied #

If you emptied Trash before the 30-day period ended, submit a request through Google’s Gmail Message Recovery Tool. Google describes the tool as an attempt to recover messages deleted within the last 30 days, including in some cases involving unauthorized account access. It does not promise recovery, and a request can fail.

The tool is not a reliable way to recover messages that have already passed Gmail’s 30-day retention period. If someone else deleted your messages, secure your Google Account as well: change your password and review account access so the same person cannot delete more mail.

Ask your Workspace administrator if this is a work account #

For a Google Workspace account provided by an employer or school, contact the administrator promptly. Administrators have a limited window to restore Gmail data, generally described as up to 25 days, though the exact window depends on when the deletion occurred. The administrator can check the Admin console’s data restore options; Google Workspace restoration guidance is summarized by Cloud Captains.

A Workspace organization that used Google Vault may also be able to search for and export older messages if a retention rule or legal hold covered them before deletion. Vault is an archiving and discovery service; it does not directly put a recovered message back into a user’s Inbox. Neither administrator recovery nor Vault helps if the relevant retention period or hold was not in place.

Check for another copy #

If Gmail no longer has the message, check any mail program or device that used either of Gmail’s standard connection methods for mail clients, IMAP or POP. A client’s local cache or downloaded copy might still contain the message. Whether a copy exists depends on the client and its settings.

To keep a separate copy, export Gmail messages with Google Takeout. A saved export provides a separate copy, but it also needs secure storage. Organizations that rely on email for critical work can consider a managed backup. They should check who can access the stored messages.

Free and open source

Try mailmd

mailmd is a free command-line tool that copies your email into Markdown files on your computer, one file per message. It works with any IMAP mailbox, and with Gmail and Outlook through their own APIs.

Install

$ curl -fsSL https://raw.githubusercontent.com/vincentsch/mailmd/main/install.sh | sh

Set it up with your coding agent

Set up mailmd so you can read my email. Use https://github.com/vincentsch/mailmd: read its AGENTS.md and follow the steps. Connect my mailbox and run the first sync. Then show me where the files are.

More on mailbox help