deleteGroup method

void deleteGroup (
  1. String groupKey,
  2. dynamic groupID
)

Permanently deletes this group's record from Group Analytics.

  • groupKey String identifying the type of group (must be already in use as a group key)
  • groupID Object identifying the specific group

Calling deleteGroup deletes an entire record completely. Any future calls to Group Analytics using the same group value will create and store new values.

Implementation

void deleteGroup(String groupKey, dynamic groupID) {
  if (_MixpanelHelper.isValidString(groupKey)) {
    _channel.invokeMethod<void>('deleteGroup',
        <String, dynamic>{'groupKey': groupKey, 'groupID': groupID});
  } else {
    developer.log('`deleteGroup` failed: groupKey cannot be blank',
        name: 'Mixpanel');
  }
}