removeGroup method

Future<void> removeGroup({
  1. String? groupname,
  2. String? groupId,
  3. String? swapGroup,
  4. String? swapGroupId,
})

Deletes a group.

Permissions required: Site administration (that is, member of the site-admin strategic group).

Implementation

Future<void> removeGroup(
    {String? groupname,
    String? groupId,
    String? swapGroup,
    String? swapGroupId}) async {
  await _client.send(
    'delete',
    'rest/api/3/group',
    queryParameters: {
      if (groupname != null) 'groupname': groupname,
      if (groupId != null) 'groupId': groupId,
      if (swapGroup != null) 'swapGroup': swapGroup,
      if (swapGroupId != null) 'swapGroupId': swapGroupId,
    },
  );
}