Synchronize then delete contacts in "On My Mac" with iCloud

I'm cleaning up things on my MacBook Pro's. Duplicate contacts in iCloud and On My Mac are leading to duplicate birthdays in the Calendar app. I would like to synchronize the contacts in On My Mac with those in iCloud, then delete them. This would seem to be a rather straight forward matter of selecting all the contacts in All on My Mac and dragging and dropping them into All in iCloud. Will this do what I want, or is there a gotcha somewhere (e.g., no check for duplicates is performed)?


I'm running macOS 13.6

MacBook Pro 16″, macOS 13.6

Posted on Oct 15, 2023 6:13 AM

Reply
Question marked as Top-ranking reply

Posted on Oct 15, 2023 7:06 AM

You understood the process. As for duplicates, there is no check for duplicates during the copy, but afterwards you can do it with Look for Duplicates in the Card menu. It will inform you of how many duplicates it finds and gives you the choice of merging them or not. The matches seem to be based on first and last name only. If one card has a home address and the other one a work address, both addresses will find their way in the merged card.


Unfortunately it doesn't show the duplicates beforehand, so it's an all-or-nothing process. I'd suggest you scan the combined list before attempting this operation to spot possible problems. For example if you know you have two persons with exactly the same first and last names, it might be wise to temporarily rename one of them to avoid their information being merged into one person.


Similar questions

6 replies
Question marked as Top-ranking reply

Oct 15, 2023 7:06 AM in response to Richard Liu

You understood the process. As for duplicates, there is no check for duplicates during the copy, but afterwards you can do it with Look for Duplicates in the Card menu. It will inform you of how many duplicates it finds and gives you the choice of merging them or not. The matches seem to be based on first and last name only. If one card has a home address and the other one a work address, both addresses will find their way in the merged card.


Unfortunately it doesn't show the duplicates beforehand, so it's an all-or-nothing process. I'd suggest you scan the combined list before attempting this operation to spot possible problems. For example if you know you have two persons with exactly the same first and last names, it might be wise to temporarily rename one of them to avoid their information being merged into one person.


Oct 18, 2023 4:12 AM in response to Recycleur

Again, many thanks. I have been able to verify my suspicions as to the origins of On My Mac. It seems that, anytime one turns off the use of iCloud on a device, not only on a Mac, one is asked whether one wants to make a local copy. This happened when when I turned off the use of iCloud on my iPhone. I agreed to a local copy, and All iPhone appeared in the the sidebar of the Contacts.app. I deleted everything in it (while iCloud was still off in it), and All iPhone also disappeared. Reconnecting Contacts.app to iCloud brought back the contacts in the iCloud, and there was still no All iPhone in the sidebar.


So I assume whatever is in All on My Mac is obsolete. I have never used the Mac for long without a reliable connection to the Internet, the only time that I could imagine adding to, deleting from or modifying the contacts in All on My Mac. And now that I know about this behavior, in the future will be careful to denote a new or modified card, by, say, appending *new* to the last name, so that I could move just these into the iCloud, delete the obsolete ones and rename the *new* ones, thereby leaving nothing to chance, resp. to a disagreement between how I believe merge should work and how it really does. After the manual merge, I would delete All on My Mac.


So I consider this question solved and thank you for your valuable input. Whether one wants to delete All on My Mac or move those contacts into iCloud and merge really depends on how much damage the merge would cause and how much weeping and gnashing of teeth manually repairing the damage would entail. In my case, I chose to just delete All on My Mac. In a few cases I might have made modifications to cards in All on My Mac without mirroring the same modifications in All iCloud, but I doubt it, as I would have noticed the discrepancies when viewing the affected contacts on the iPhone or the iPad and resolved them.


Oct 17, 2023 5:48 AM in response to Richard Liu

Before iCloud all contacts were kept On My Mac. When you started using iCloud for Contacts the new contacts started being added there (if iCloud's Contact (All) was selected) but the existing ones On My Mac stayed there.


Since you have all those duplicate contacts either they were automatically copied when starting iCloud or at one point you copied everything from On My Mac to iCloud. What I remember is doing a clean-up to manually check one per one the contacts that were in both places and deleting them from On My Mac if they were identical. I guess I didn't know then that Contacts could do it. For example what I'd find for the same person is an old home address On My Mac and their new address in iCloud because I had updated it when they moved, thus proving the two lists are disconnected.


On My Mac has been empty for a long time because I wanted everything to be synchronized across my devices.


Yesterday I installed Sonoma and the installation process created one card for me On My Mac. After verifying that my iCloud contacts were OK I deleted that card and On My Mac disappeared from the left column.


Your cautiousness is legitimate, so if you're still doubtful proceed as you said by starting with a small test batch of 5 contacts. Do the Duplicates thing and see what happens.


As added precaution before starting anything export all contacts as vCards to keep a backup.

Oct 15, 2023 7:18 AM in response to Recycleur

Thanks, very helpful. I found how to recognize duplicates before performing the move. I select all the contacts in All on My Mac, then click on All Contacts. The selected contacts are displayed with a background that denotes that they have been selected, while others are displayed without a background color.


Perhaps you know: When deduplicating after the merge, will I still be pestered if the cards are exactly the same?

Oct 15, 2023 8:02 AM in response to Richard Liu

I guess that by "Deduplicating" you mean going ahead with that?



There won't be two cards with the same name after that merging. The information from the two (three, four) cards will be collected in only one card.


I cannot verify if merging occurs in only one selected location, iCloud or On My Mac, or across both, as I don't have the On My Mac section anymore.

Oct 15, 2023 11:15 PM in response to Recycleur

I still hesitate. Let me tell you why.


First, in All on My Mac I have 477 contacts; in All iCloud, 553. In the majority of cases, if not all, the contact in All iCloud should be kept, but I would appreciate more information than what Cancel-or-Merge prompt in your reply offers. A side-by-side comparison would be more helpful.


Second, the real problem that I'm trying to solve is this: birthdays in contacts are appearing twice in Calendar.app. I want them to appear just once. It seems that deleting All on My Mac would solve this problem, but not knowing how All on My Mac got there in the first place, and whether something is maintaining it (sort of like a cache or backup), or whether, once I delete all the contacts there nothing will magically appear there, makes me reluctant to take the dive. Except for the duplicate birthdays in Calendar.app nothing else on the Mac seems to be affected.


Third, a second MacBook Pro has the same problem, except that its All on My Mac has two contacts more.


If you, or anyone else, can shed more light on those issues, I would appreciate it. Otherwise, I suppose I'm just going to have to take a timid first step and, say move just a few contacts to All iCloud and see what happens.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Synchronize then delete contacts in "On My Mac" with iCloud

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.