How to Completely Reinstall the Mac ‘Mail’ App (Without Reinstalling macOS)

If the default Apple Mail application on your Mac is constantly crashing upon opening, failing to sync IMAP folders, or randomly deleting your drafted emails, the underlying database files might be corrupted beyond repair. When this happens, simply removing and re-adding your email accounts in the System Preferences often fails to resolve the deep-rooted instability.

Because the Mail app is a core, protected system component in macOS, you cannot uninstall it by dragging it to the Trash. However, you can use the Terminal and the hidden Library folder to completely obliterate the app’s internal databases, cache files, and preference plists, effectively forcing macOS to perform a clean, factory-reset “reinstallation” of the Mail app the next time you open it.

How to Completely Reinstall the Mac Mail App (Reset to Factory Defaults)

You must delete the hidden Mail container folders to wipe the corrupted databases.

  1. First, ensure the Mail app is completely closed. (Right-click its icon in the Dock and select Quit).
  2. Open the Finder.
  3. Hold down the Option (⌥) key on your keyboard, click the Go menu in the top menu bar, and select Library. (The Library folder is hidden unless you hold the Option key).
  4. In the Library folder, locate the folder named Mail. Drag this entire folder to the Trash. (This deletes your local email database, but do not worry—your emails are still safely stored on your provider’s cloud servers like Gmail or iCloud).
  5. Next, return to the main Library folder and open the folder named Containers.
  6. Find the folder named com.apple.mail (or simply Mail on newer macOS versions) and drag it to the Trash. This wipes the corrupted app preferences.
  7. Empty the Trash and restart your Mac.

When you click the Mail icon in your Dock after the reboot, macOS will realize the core databases are missing. It will immediately generate a fresh, pristine set of application files and prompt you to log into your email accounts, completely curing the crashing behavior.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.