Is there any way to delete hundreds of empty contacts group
Thanks Leonard Challis, I finally solved this problem with AppleScript.

I found the script here. Script to delete all groups in contacts

Just copy the code to "Script Editor" and run it.


set counter to 0
display dialog "Name of group to delete?" default answer ""
set theGroupName to text returned of result
tell application "Contacts"
    repeat
        try
            set theGroup to group theGroupName
            delete theGroup
            set counter to counter + 1
        on error
            exit repeat
        end try
    end repeat
    save
    display dialog "Removed " &amp; counter &amp; " instances of the group" with icon caution buttons {"OK"} default button "OK"
end tell



It will run a very long time if you have a lot of groups, just wait, it's working.