Instance Method


Deletes a group from the contact store.


func delete(_ group: CNMutableGroup)



The group to delete.


This method overrides any previously made add request on the group. The group to be deleted must already exist in the contact store. If it does not, the delete request fails, the CNErrorCodeRecordDoesNotExist error is thrown, and the CNErrorUserInfoAffectedRecordsKey array is updated to contain that object.

See Also

Saving Group Changes

func update(CNMutableGroup)

Updates an existing group in the contact store.

func addMember(CNContact, to: CNGroup)

Adds a contact as a member of a group.

func removeMember(CNContact, from: CNGroup)

Removes a contact as a member of a group.