removeGroup method
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,
},
);
}