deleteKxUser method

Future<void> deleteKxUser({
  1. required String environmentId,
  2. required String userName,
  3. String? clientToken,
})

Deletes a user in the specified kdb environment.

May throw AccessDeniedException. May throw ConflictException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter environmentId : A unique identifier for the kdb environment.

Parameter userName : A unique identifier for the user that you want to delete.

Parameter clientToken : A token that ensures idempotency. This token expires in 10 minutes.

Implementation

Future<void> deleteKxUser({
  required String environmentId,
  required String userName,
  String? clientToken,
}) async {
  final $query = <String, List<String>>{
    if (clientToken != null) 'clientToken': [clientToken],
  };
  final response = await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri:
        '/kx/environments/${Uri.encodeComponent(environmentId)}/users/${Uri.encodeComponent(userName)}',
    queryParams: $query,
    exceptionFnMap: _exceptionFns,
  );
}