Delete mail account on mac

To delete a mail account on a Mac, you can follow these steps:

Method 1: Delete a mail account using Mail app

  1. Open the Mail app on your Mac.
  2. Click on "Mail" in the top menu bar and select "Preferences" (or use the keyboard shortcut Command + comma).
  3. Click on the "Accounts" tab.
  4. Select the mail account you want to delete from the list of accounts.
  5. Click the "minus sign" (-) button at the bottom left corner of the window.
  6. Confirm that you want to delete the account by clicking "Delete" in the pop-up window.

Method 2: Delete a mail account using System Preferences

  1. Click on the Apple menu and select "System Preferences".
  2. Click on "Internet Accounts".
  3. Select the mail account you want to delete from the list of accounts.
  4. Click the "minus sign" (-) button at the bottom left corner of the window.
  5. Confirm that you want to delete the account by clicking "Delete" in the pop-up window.

Method 3: Delete a mail account using the Terminal

  1. Open the Terminal app on your Mac.
  2. Type the following command and press Enter: sudo launchctl unload /System/Library/LaunchDaemons/com.apple.mail.plist
  3. Type your administrator password when prompted.
  4. Type the following command and press Enter: rm -rf /Library/Preferences/com.apple.mail.plist
  5. Type the following command and press Enter: rm -rf /Library/Preferences/com.apple.mail.plist.lockfile

Note: Be careful when using the Terminal method, as it can potentially cause issues with your system if not done correctly.

After deleting the mail account, you may need to restart your Mac or relaunch the Mail app for the changes to take effect.