MacOS – How to remove ‘phantom’ iCloud account from Apple Mail

accountsicloudmacosmail.app

I am trying to remove a duplicate copy of my iCloud account from Apple Mail that seems to have managed to get stuck there.

I cannot remove it from the Internet Accounts or iCloud panels as it does not appear there, just in my account listing for Mail. If I try to remove it there I am told to use the Internet Accounts panel (where it isn't).

I have tried changing the name and gripping the contents of Preferences and Application Support for the unique name, but no luck.

Where does Apple Mail store it's account information and can I remove the account from there?

Best Answer

The list of accounts is stored in the property list located at:

~/Library/Mail/V2/MailData/Accounts.plist

The account data itself is stored in ~/Library/Mail/V2/<account-type>-<email-address>.
This entire folder can be deleted for the account you wish to remove.