Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
9.5
10.0
10.1
10.2
10.3
10.4
10.5
11.0
11.1
11.2
Statistic
FMM
Blog
Deletes a group.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Contacts | 8.4 | ✅ Yes | ❌ No | ❌ No | ❌ No | ✅ Yes |
Parameter | Description | Example |
---|---|---|
GroupIdentifier | The group identifier. Can be identifier or group name. |
"F527BF7C-6426-4D48-86CA-CB5E57743FFE:ABGroup" |
Returns OK or error.
Delete group:
If [ Length ( Contacts::GroupID ) = 0 ]
Show Custom Dialog [ "Failed to delete a group" ; "No ID in field" ]
Else
Set Variable [ $r ; Value: MBS( "CNContactStore.DeleteGroup"; Contacts::GroupID) ]
If [ MBS("IsError") ]
Show Custom Dialog [ "Failed to delete a group" ; $r ]
Else
Set Field [ Contacts::GroupID ; "" ]
End If
End If
Created 1st August 2018, last changed 30th August 2018
CNContactStore.DeleteContact - CNContactStore.GroupHierarchy
Feedback: Report problem or ask question.