How to Recover Deleted Emails
With mailmd How to Delete a Gmail Account Without Losing Your EmailsOn this page
If you deleted an email and can’t find it, check your account’s Trash or Deleted Items folder first. Most email services keep deleted messages there for a limited time. Some offer another way to recover them after you empty the folder. The available steps and deadline depend on your email provider and, for work or school accounts, your administrator’s settings.
Start recovery as soon as you notice the message is missing, and search all folders too. Archiving removes a message from the inbox but keeps it in your account.
Check Trash, Deleted Items, and the rest of your mailbox #
Open your email account in a browser if possible. Check Trash and Deleted Items, along with Spam or Junk. Search all folders for the sender or subject, or for a phrase from the message. If you find the email, move it to your inbox or another folder.
For Outlook, Microsoft says messages in Deleted Items or Junk Email can be restored by selecting them and moving them to another folder. In new Outlook for Windows, you can also right-click a message and choose Restore. If the email is missing from Deleted Items, open that folder and select Recover items deleted from this folder to look for messages in Outlook’s recovery area. Follow Microsoft’s Outlook recovery steps for your version.
Gmail keeps deleted messages in Trash for 30 days. During that period, open Trash, select the message, and move it back to the inbox. After 30 days, the message is permanently deleted from the user’s Trash, according to Google’s Gmail recovery guidance.
Ask an administrator when a work or school email is involved #
Work or school accounts may have recovery options that personal accounts do not. Contact your email administrator promptly if the message has disappeared from the folders you can access. Microsoft 365 administrators may be able to recover items from a mailbox’s recoverable storage, depending on the account’s retention settings. Microsoft’s Outlook instructions also explain how users can check for recoverable items.
For Google Workspace, an administrator can use the Admin console’s Restore data tool for up to 25 days after the message leaves Trash. That period begins 30 days after deletion. Once the additional 25-day period ends, Google says administrators cannot restore the message. Organizations may still be able to find messages covered by a retention rule or legal hold in Google Vault. Vault exports these messages instead of restoring them directly to a user’s Gmail account. See Google’s administrator recovery limits.
If the message is still missing #
Check whether another mail program or device moved or deleted the message. When a mail program syncs with a server, it keeps the messages on your device and account matched. Deleting a message on one device can remove it from the account and other devices too. If you used a desktop mail program, look for a local archive or backup, but do not assume a file-recovery tool can retrieve email stored only on a provider’s server.
Recovery deadlines vary by provider. Microsoft 365 deadlines depend on mailbox settings. Gmail has separate documented recovery deadlines for users and administrators. If you use another provider, check its current help instructions rather than relying on a recovery window reported for a different service.
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.