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:
12.1
12.2
12.3
12.4
12.5
13.0
13.1
13.2
13.3
13.4
Statistic
FMM
Blog
Delete a contact from the contact store.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Contacts | 8.4 | ✅ Yes | ❌ No | ❌ No | ❌ No | ✅ Yes |
Parameter | Description | Example |
---|---|---|
ContactIdentifier | The contact identifier. | "46B1E34D-58F9-4B6B-A80D-0F71ABB87A0E" |
Returns OK or error.
Delete contact:
If [ Length ( Contacts::ContactID ) = 0 ]
Show Custom Dialog [ "Failed to delete a contact" ; "No ID in field" ]
Else
Set Variable [ $r ; Value: MBS( "CNContactStore.DeleteContact"; Contacts::ContactID) ]
If [ MBS("IsError") ]
Show Custom Dialog [ "Failed to delete a contact" ; $r ]
Else
Set Field [ Contacts::ContactID ; "" ]
End If
End If
This function checks for a license.
Created 1st August 2018, last changed 6th August 2018
CNContactStore.DefaultContainerIdentifier - CNContactStore.DeleteGroup