deleteContactFromGroup

abstract fun deleteContactFromGroup(groupId: String?, contactId: String?, listener: RainbowListener<Unit, Unit>?)

Removes a contact from a specific group.

This method allows you to remove a contact identified by contactId from a group specified by groupId. The contact is no longer associated with the group, and the group's details are updated in the groups property.

If either the groupId or contactId is null or empty, the method returns immediately, and the listener's onError method is triggered with an appropriate error message.

If the contact is successfully removed from the group, the listener's onSuccess method is called to indicate that the operation was completed successfully.

Parameters

groupId

The unique identifier of the group from which the contact will be removed. If null or empty, the method returns immediately, and the listener's onError method is called.

contactId

The unique identifier of the contact to remove from the group. If null or empty, the method returns immediately, and the listener's onError method is called.

listener

An optional RainbowListener that will be notified with the result of the remove operation.