deleteUser method

Future<void> deleteUser({
  1. required String instanceId,
  2. required String userId,
})

Deletes a user account from the specified Amazon Connect instance.

For information about what happens to a user's data when their account is deleted, see Delete Users from Your Amazon Connect Instance in the Amazon Connect Administrator Guide.

May throw InvalidRequestException. May throw InvalidParameterException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw InternalServiceException.

Parameter instanceId : The identifier of the Amazon Connect instance.

Parameter userId : The identifier of the user.

Implementation

Future<void> deleteUser({
  required String instanceId,
  required String userId,
}) async {
  ArgumentError.checkNotNull(instanceId, 'instanceId');
  _s.validateStringLength(
    'instanceId',
    instanceId,
    1,
    100,
    isRequired: true,
  );
  ArgumentError.checkNotNull(userId, 'userId');
  await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri:
        '/users/${Uri.encodeComponent(instanceId)}/${Uri.encodeComponent(userId)}',
    exceptionFnMap: _exceptionFns,
  );
}