Is there any way to delete hundreds of empty contacts group Because of some unknown problems, I have hundreds of empty contacts group,I want to delete them all.

I try it on Mac and iCloud,they can just delete one group a time.

I haven’t found any good apps to do it in App Store,if you know one,please tell me.
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.