removeUser method

Future<void> removeUser({
  1. required String accountId,
  2. String? username,
  3. String? key,
})

Deletes a user. If the operation completes successfully then the user is removed from Jira's user base. This operation does not delete the user's Atlassian account.

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

Implementation

Future<void> removeUser(
    {required String accountId, String? username, String? key}) async {
  await _client.send(
    'delete',
    'rest/api/3/user',
    queryParameters: {
      'accountId': accountId,
      if (username != null) 'username': username,
      if (key != null) 'key': key,
    },
  );
}